Uses of Class
net.minecraftforge.event.world.WorldEvent
Packages that use WorldEvent
-
Uses of WorldEvent in net.minecraftforge.event.world
Subclasses of WorldEvent in net.minecraftforge.event.worldModifier 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 theMinecraftForge.EVENT_BUS.static classChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
This event is fired during chunk loading in {@link net.minecraft.world.chunk.storage.ChunkSerializer.read(ServerWorld, TemplateManager, PointOfInterestManager, ChunkPos, CompoundNBT)} which means it is async, so be careful.
This event is notCancelable.
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 inAnvilChunkLoader#saveChunk(World, Chunk).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 theMinecraftForge.EVENT_BUS.static classChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the world.
This event is fired during chunk loading in
ChunkProviderClient#loadChunk(int, int),
Chunk.onChunkLoad().static classChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the world.
This event is fired during chunk unloading in
Chunk.onChunkUnload().classSaplingGrowTreeEvent is fired when a sapling grows into a tree.
This event is fired during sapling growth inBlockSapling#generateTree(World, BlockPos, IBlockState, Random).
SaplingGrowTreeEvent.poscontains the coordinates of the growing sapling.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.static classCalled by WorldServer when it attempts to create a spawnpoint for a dimension.static classWorldEvent.Load is fired when Minecraft loads a world.
This event is fired when a world is loaded inWorldClient#WorldClient(NetHandlerPlayClient, WorldSettings, int, EnumDifficulty, Profiler),MinecraftServer#loadAllWorlds(String, String, long, WorldType, String),IntegratedServer#loadAllWorlds(String, String, long, WorldType, String)DimensionManager#initDimension(int), andForgeInternalHandler#onDimensionLoad(Load).static classCalled by WorldServer to gather a list of all possible entities that can spawn at the specified location.static classWorldEvent.Save is fired when Minecraft saves a world.
This event is fired when a world is saved inWorldServer#saveAllChunks(boolean, IProgressUpdate),ForgeInternalHandler#onDimensionSave(Save).static classWorldEvent.Unload is fired when Minecraft unloads a world.
This event is fired when a world is unloaded inMinecraft#loadWorld(WorldClient, String),MinecraftServer.stopServer(),DimensionManager#unloadWorlds(),ForgeInternalHandler#onDimensionUnload(Unload).