Package net.minecraftforge.event.level
Class LevelEvent.CreateSpawnPosition
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.LevelEvent
net.minecraftforge.event.level.LevelEvent.CreateSpawnPosition
- Enclosing class:
- LevelEvent
This event fires whenever a
ServerLevel
is initialized for the first time
and a spawn position needs to be chosen.
This event is cancellable and does not have a result. If the event is canceled, the vanilla logic to choose a spawn position will be skipped.
This event is fired on the main Forge event bus only on the logical server.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.level.LevelEvent
LevelEvent.CreateSpawnPosition, LevelEvent.Load, LevelEvent.PotentialSpawns, LevelEvent.Save, LevelEvent.Unload
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.level.LevelEvent
getLevel
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
settings
-
-
Constructor Details
-
CreateSpawnPosition
-
-
Method Details
-
getSettings
-