Package net.neoforged.neoforge.event
Class TickEvent.ServerTickEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.TickEvent
net.neoforged.neoforge.event.TickEvent.ServerTickEvent
- Enclosing class:
TickEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.TickEvent
TickEvent.ClientTickEvent, TickEvent.LevelTickEvent, TickEvent.Phase, TickEvent.PlayerTickEvent, TickEvent.RenderTickEvent, TickEvent.ServerTickEvent, TickEvent.Type
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServerTickEvent
(TickEvent.Phase phase, BooleanSupplier haveTime, MinecraftServer server) -
Method Summary
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
haveTime
-
server
-
-
Constructor Details
-
ServerTickEvent
-
-
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
-
getServer
Returns the server instance.- Returns:
- the server instance
-