Class LevelTickEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.tick.LevelTickEvent
- Direct Known Subclasses:
LevelTickEvent.Post
,LevelTickEvent.Pre
public abstract class LevelTickEvent
extends net.neoforged.bus.api.Event
Base class of the two level tick events.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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. -
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
hasTime
-
level
-
-
Constructor Details
-
LevelTickEvent
-
-
Method Details
-
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
Returns the level being ticked.- Returns:
- the level being ticked
-