Uses of Package
net.neoforged.neoforge.event.level
Package
Description
-
-
ClassDescriptionChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the level.
This event is fired during chunk loading in
Chunk.onChunkLoad().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(). -
ClassDescriptionChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the level.
This event is fired during chunk unloading in
Chunk.onChunkUnload(). -
ClassDescriptionThis event is fired on the server when a player attempts to break a block, upon receipt of a block break packet.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().This event is fired whenever a level unloads. -
ClassDescriptionFired when a physics update occurs on a block.This event is fired whenever a block (like a sapling) grows into a feature (like a tree).
-
ClassDescriptionCalled when a block is placed.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
.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.
ChunkEvent.chunk
contains the Chunk this event is affecting.
All children of this event are fired on theNeoForge.EVENT_BUS
.This event is fired whenever a chunk has a watch-related action.ExplosionEvent triggers when an explosion happens in the level.
ExplosionEvent.Start is fired before the explosion actually occurs.
ExplosionEvent.Detonate is fired once the explosion has a list of affected blocks and entities.
ExplosionEvent.Start isICancellableEvent
.
ExplosionEvent.Detonate can modify the affected blocks and entities.
Children do not useinvalid reference
HasResult
Children of this event are fired on theNeoForge.EVENT_BUS
.This event is fired whenever an event involving aLevelAccessor
occurs.Base class for Noteblock EventsInformation about the pitch of a Noteblock note.Describes the Octave of a Note being played by a Noteblock.Base piston event, usePistonEvent.Post
andPistonEvent.Pre
-
-
ClassDescriptionChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
This event is fired during chunk saving inChunkMap#save(ChunkAccess)
.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().This event is fired whenever a chunk being watched by aServerPlayer
is transmitted to their client (seePlayerChunkSender.sendNextChunks(ServerPlayer)
).This event is fired whenever aServerPlayer
stops watching a chunk.This event is fired whenever aServerPlayer
begins watching a chunk and the chunk is queued up for sending to the client (seeChunkMap.markChunkPendingToSend(ServerPlayer, LevelChunk)
).Fired when building a list of all possible entities that can spawn at the specified location. -