Package net.minecraftforge.event
Class TickEvent.WorldTickEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.TickEvent
net.minecraftforge.event.TickEvent.WorldTickEvent
- Enclosing class:
- TickEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.TickEvent
TickEvent.ClientTickEvent, TickEvent.Phase, TickEvent.PlayerTickEvent, TickEvent.RenderTickEvent, TickEvent.ServerTickEvent, TickEvent.Type, TickEvent.WorldTickEvent
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
ConstructorDescriptionWorldTickEvent
(LogicalSide side, TickEvent.Phase phase, Level world) Deprecated, for removal: This API element is subject to removal in a future version.WorldTickEvent
(LogicalSide side, TickEvent.Phase phase, Level world, BooleanSupplier haveTime) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
world
-
haveTime
-
-
Constructor Details
-
WorldTickEvent
@Deprecated(forRemoval=true, since="1.18.1") public WorldTickEvent(LogicalSide side, TickEvent.Phase phase, Level world) Deprecated, for removal: This API element is subject to removal in a future version.TODO: Remove in 1.19 -
WorldTickEvent
public WorldTickEvent(LogicalSide side, TickEvent.Phase phase, Level world, 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:
-
WorldTickEvent(LogicalSide, Phase, Level, BooleanSupplier)