mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-01 11:30:57 +00:00
23 lines
518 B
C#
23 lines
518 B
C#
namespace Minecraft.Server.FourKit.Event.World;
|
|
|
|
using Minecraft.Server.FourKit.Chunk;
|
|
|
|
/// <summary>
|
|
/// Represents a Chunk related event.
|
|
/// </summary>
|
|
public abstract class ChunkEvent : WorldEvent
|
|
{
|
|
protected Chunk chunk;
|
|
|
|
protected ChunkEvent(Chunk chunk) : base(chunk.getWorld())
|
|
{
|
|
this.chunk = chunk;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the chunk being loaded/unloaded.
|
|
/// </summary>
|
|
/// <returns>Chunk that triggered this event.</returns>
|
|
public Chunk getChunk() => chunk;
|
|
}
|