Uses of Class
net.minecraftforge.event.world.WorldEvent
-
Uses of WorldEvent in net.minecraftforge.event.world
Modifier 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 theMinecraftForge.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 notCancelable
.
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)
.class
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 theMinecraftForge.EVENT_BUS
.static class
ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the world.
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 world.
This event is fired during chunk unloading in
Chunk.onChunkUnload().class
SaplingGrowTreeEvent is fired when a sapling grows into a tree.
This event is fired during sapling growth inSaplingBlock.advanceTree(ServerLevel, BlockPos, BlockState, Random)
.
SaplingGrowTreeEvent.pos
contains the coordinates of the growing sapling.class
This 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.static class
Called by WorldServer when it attempts to create a spawnpoint for a dimension.static class
WorldEvent.Load is fired when Minecraft loads a world.
This event is fired when a world is loaded inClientLevel#ClientLevel(ClientPacketListener, ClientLevel.ClientLevelData, ResourceKey, DimensionType, int, int, Supplier, LevelRenderer, boolean, long)
,MinecraftServer#createLevels(ChunkProgressListener)
.static class
Fired when building a list of all possible entities that can spawn at the specified location.static class
WorldEvent.Save is fired when Minecraft saves a world.
This event is fired when a world is saved inServerLevel.save(ProgressListener, boolean, boolean)
.static class
WorldEvent.Unload is fired when Minecraft unloads a world.
This event is fired when a world is unloaded inMinecraft.setLevel(ClientLevel)
,MinecraftServer.stopServer()
,,Minecraft.clearLevel(Screen)
ForgeInternalHandler.onDimensionUnload(Unload)
.