Package net.minecraftforge.event.world
Class WorldEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.world.WorldEvent
- Direct Known Subclasses:
- ChunkEvent,- SaplingGrowTreeEvent,- SleepFinishedTimeEvent,- WorldEvent.CreateSpawnPosition,- WorldEvent.Load,- WorldEvent.PotentialSpawns,- WorldEvent.Save,- WorldEvent.Unload
public class WorldEvent
extends net.minecraftforge.eventbus.api.Event
WorldEvent is fired when an event involving the world occurs.
If a method utilizes this
 
 
 
All children of this event are fired on the
If a method utilizes this
Event as its parameter, the method will
 receive every child event of this class.world contains the World this event is occurring in.All children of this event are fired on the
MinecraftForge.EVENT_BUS.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic 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 inClientLevel#ClientLevel(ClientPacketListener, ClientLevel.ClientLevelData, ResourceKey, DimensionType, int, int, Supplier, LevelRenderer, boolean, long),MinecraftServer#createLevels(ChunkProgressListener).static classFired when building 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 inServerLevel.save(ProgressListener, boolean, boolean).static classWorldEvent.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).Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
- 
Field Details- 
world
 
- 
- 
Constructor Details- 
WorldEvent
 
- 
- 
Method Details- 
getWorld
 
-