Uses of Class
net.neoforged.neoforge.event.level.ChunkEvent
Packages that use ChunkEvent
-
Uses of ChunkEvent in net.neoforged.neoforge.event.level
Subclasses of ChunkEvent in net.neoforged.neoforge.event.levelModifier and TypeClassDescriptionclass
ChunkDataEvent is fired when an event involving chunk data occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
ChunkDataEvent.data
contains the NBTTagCompound containing the chunk data for this event.
All children of this event are fired on theNeoForge.EVENT_BUS
.static class
ChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
This event is fired during chunk loading inChunkSerializer.read(ServerLevel, PoiManager, ChunkPos, CompoundTag)
which means it is async, so be careful.
This event is notinvalid reference
ICancellableEvent
This event does not have a result.static class
ChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
This event is fired during chunk saving inChunkMap#save(ChunkAccess)
.static 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().