Uses of Class
net.neoforged.neoforge.event.level.LevelEvent
Packages that use LevelEvent
-
Uses of LevelEvent in net.neoforged.neoforge.event.level
Subclasses of LevelEvent in net.neoforged.neoforge.event.levelModifier and TypeClassDescriptionclassThis event is fired whenever a block (like a sapling) grows into a feature (like a tree).classChunkDataEvent 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).classChunkEvent is fired when an event involving a chunk occurs.
If a method utilizes thisEventas its parameter, the method will receive every child event of this class.
ChunkEvent.chunkcontains the Chunk this event is affecting.
All children of this event are fired on theNeoForge.EVENT_BUS.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().static classThis event fires whenever aServerLevelis initialized for the first time and a spawn position needs to be chosen.static classThis event is fired whenever a level loads.static classFired when building a list of all possible entities that can spawn at the specified location.static classThis event fires whenever a level is saved.static classThis event is fired whenever a level unloads.classThis event is fired when all players are asleep and the time should be set to day.
setWakeUpTime(wakeUpTime) sets a new time that will be added to the dayTime.