类 LevelEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
- 直接已知子类:
BlockGrowFeatureEvent
,ChunkEvent
,LevelEvent.CreateSpawnPosition
,LevelEvent.Load
,LevelEvent.PotentialSpawns
,LevelEvent.Save
,LevelEvent.Unload
,SleepFinishedTimeEvent
public abstract class LevelEvent
extends net.neoforged.bus.api.Event
This event is fired whenever an event involving a
LevelAccessor
occurs.
All children of this event are fired on the main Forge event bus.
-
嵌套类概要
嵌套类修饰符和类型类说明static class
This event fires whenever aServerLevel
is initialized for the first time and a spawn position needs to be chosen.static class
This event is fired whenever a level loads.static class
Fired when building a list of all possible entities that can spawn at the specified location.static class
This event fires whenever a level is saved.static class
This event is fired whenever a level unloads. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
level
-
-
构造器详细资料
-
LevelEvent
-
-
方法详细资料
-
getLevel
返回 the level this event is affecting。- 返回:
- the level this event is affecting
-