public class ChunkEvent extends WorldEvent
Event
as its parameter, the method will
receive every child event of this class.chunk
contains the Chunk this event is affecting.MinecraftForge.EVENT_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
ChunkEvent.Load
ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the world.
This event is fired during chunk loading in ChunkProviderClient#loadChunk(int, int) , Chunk.onChunkLoad(). |
static class |
ChunkEvent.Unload
ChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the world.
This event is fired during chunk unloading in Chunk.onChunkUnload(). |
WorldEvent.CreateSpawnPosition, WorldEvent.PotentialSpawns, WorldEvent.Save
Constructor and Description |
---|
ChunkEvent(IChunk chunk) |
ChunkEvent(IChunk chunk,
IWorld world) |
Modifier and Type | Method and Description |
---|---|
IChunk |
getChunk() |
getWorld