Package net.minecraftforge.event.world
Class ChunkEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.WorldEvent
-
- net.minecraftforge.event.world.ChunkEvent
-
- Direct Known Subclasses:
ChunkDataEvent
,ChunkEvent.Load
,ChunkEvent.Unload
public class ChunkEvent extends WorldEvent
ChunkEvent is fired when an event involving a chunk occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
chunk
contains the Chunk this event is affecting.
All children of this event are fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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().-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.PotentialSpawns, WorldEvent.Save
-
-
Constructor Summary
Constructors Constructor Description ChunkEvent(IChunk chunk)
ChunkEvent(IChunk chunk, IWorld world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IChunk
getChunk()
-
Methods inherited from class net.minecraftforge.event.world.WorldEvent
getWorld
-
-