类 LevelEvent.CreateSpawnPosition
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
net.neoforged.neoforge.event.level.LevelEvent.CreateSpawnPosition
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
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
.
If the event is canceled, the vanilla logic to choose a spawn position will be skipped.
引用无效
have a result
This event is fired on the main Forge event bus only on the logical server.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.LevelEvent
LevelEvent.CreateSpawnPosition, LevelEvent.Load, LevelEvent.PotentialSpawns, LevelEvent.Save, LevelEvent.Unload
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.neoforged.neoforge.event.level.LevelEvent
getLevel
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
字段详细资料
-
settings
-
-
构造器详细资料
-
CreateSpawnPosition
-
-
方法详细资料
-
getSettings
-