Package net.minecraftforge.event
Class TickEvent.LevelTickEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.TickEvent
net.minecraftforge.event.TickEvent.LevelTickEvent
- Enclosing class:
- TickEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.TickEvent
TickEvent.ClientTickEvent, TickEvent.LevelTickEvent, TickEvent.Phase, TickEvent.PlayerTickEvent, TickEvent.RenderTickEvent, TickEvent.ServerTickEvent, TickEvent.Type
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLevelTickEvent
(LogicalSide side, TickEvent.Phase phase, Level level, BooleanSupplier haveTime) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
level
-
haveTime
-
-
Constructor Details
-
LevelTickEvent
public LevelTickEvent(LogicalSide side, TickEvent.Phase phase, Level level, BooleanSupplier haveTime)
-
-
Method Details
-
haveTime
public boolean haveTime()- Returns:
true
whether the server has enough time to perform any additional tasks (usually IO related) during the current tick, otherwisefalse
- See Also:
-