类 LevelTickEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.tick.LevelTickEvent
- 直接已知子类:
LevelTickEvent.Post
,LevelTickEvent.Pre
public abstract class LevelTickEvent
extends net.neoforged.bus.api.Event
Base class of the two level tick events.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
LevelTickEvent.Post
is fired once per game tick, per level, after the level performs work for the current tick.static class
LevelTickEvent.Pre
is fired once per game tick, per level, before the level performs work for the current tick. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
hasTime
-
level
-
-
构造器详细资料
-
LevelTickEvent
-
-
方法详细资料
-
hasTime
public boolean hasTime()On the server, returns true if the server has enough time to perform any additional tasks (usually IO related) during the current tick. On the client, always returns true. -
getLevel
返回 the level being ticked。- 返回:
- the level being ticked
-