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 TypeClassDescriptionclassChunkDataEvent is fired when an event involving chunk data occurs.
If a method utilizes thisEventas its parameter, the method will receive every child event of this class.
ChunkDataEvent.datacontains the NBTTagCompound containing the chunk data for this event.
All children of this event are fired on theNeoForge.EVENT_BUS.static classChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
This event is fired during chunk loading inwhich means it is async, so be careful.invalid reference
ChunkSerializer#read(ServerLevel, PoiManager, ChunkPos, CompoundTag)
This event is not.invalid reference
ICancellableEvent
This event does not have a result.static classChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
This event is fired during chunk saving inChunkMap#save(ChunkAccess).static classChunkEvent.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 classChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the level.
This event is fired during chunk unloading in
Chunk.onChunkUnload().