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