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
Event.HasResult, Event.Result
Constructor and Description |
---|
ChunkEvent(Chunk chunk) |
Modifier and Type | Method and Description |
---|---|
Chunk |
getChunk() |
getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup