Package net.minecraftforge.event.world
Class WorldEvent.CreateSpawnPosition
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.WorldEvent
-
- net.minecraftforge.event.world.WorldEvent.CreateSpawnPosition
-
- Enclosing class:
- WorldEvent
public static class WorldEvent.CreateSpawnPosition extends WorldEvent
Called by WorldServer when it attempts to create a spawnpoint for a dimension. Canceling the event will prevent the vanilla code from running.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.Unload
-
-
Field Summary
Fields Modifier and Type Field Description private IServerWorldInfo
settings
-
Constructor Summary
Constructors Constructor Description CreateSpawnPosition(IWorld world, IServerWorldInfo settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IServerWorldInfo
getSettings()
-
Methods inherited from class net.minecraftforge.event.world.WorldEvent
getWorld
-
-
-
-
Field Detail
-
settings
private final IServerWorldInfo settings
-
-
Constructor Detail
-
CreateSpawnPosition
public CreateSpawnPosition(IWorld world, IServerWorldInfo settings)
-
-
Method Detail
-
getSettings
public IServerWorldInfo getSettings()
-
-