Class LevelEvent.CreateSpawnPosition
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
net.neoforged.neoforge.event.level.LevelEvent.CreateSpawnPosition
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
- LevelEvent
public static class LevelEvent.CreateSpawnPosition
extends LevelEvent
implements net.neoforged.bus.api.ICancellableEvent
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.neoforged.neoforge.event.level.LevelEvent
LevelEvent.CreateSpawnPosition, LevelEvent.Load, LevelEvent.PotentialSpawns, LevelEvent.Save, LevelEvent.Unload
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.LevelEvent
getLevel
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
settings
-
-
Constructor Details
-
CreateSpawnPosition
-
-
Method Details
-
getSettings
-