Class ChunkEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
net.neoforged.neoforge.event.level.ChunkEvent
- Direct Known Subclasses:
ChunkDataEvent
,ChunkEvent.Load
,ChunkEvent.Unload
ChunkEvent is fired when an event involving a chunk occurs.
If a method utilizes this
All children of this event are fired on the
If a method utilizes this
Event
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 the
NeoForge.EVENT_BUS
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the level.
This event is fired during chunk loading in
Chunk.onChunkLoad().static class
ChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the level.
This event is fired during chunk unloading in
Chunk.onChunkUnload().Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.LevelEvent
LevelEvent.CreateSpawnPosition, LevelEvent.PotentialSpawns, LevelEvent.Save
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChunkEvent
(ChunkAccess chunk) ChunkEvent
(ChunkAccess chunk, LevelAccessor level) -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.LevelEvent
getLevel
-
Field Details
-
chunk
-
-
Constructor Details
-
ChunkEvent
-
ChunkEvent
-
-
Method Details
-
getChunk
-