namespace Minecraft.Server.FourKit.Event.World;
using Minecraft.Server.FourKit.Chunk;
///
/// Called when a chunk is loaded.
///
public class ChunkLoadEvent : ChunkEvent
{
private readonly bool _newChunk;
internal ChunkLoadEvent(Chunk chunk, bool newChunk) : base(chunk)
{
_newChunk = newChunk;
}
///
/// Gets if this chunk was newly created or not. Note that if this chunk is
/// new, it will not be populated at this time.
///
/// true if the chunk is new, otherwise false.
public bool isNewChunk() => _newChunk;
}