Package dev.twilite.client.plugins
Class TickResult
java.lang.Object
dev.twilite.client.plugins.TickResult
Scheduling result returned by
TickPlugin.tick().-
Method Summary
Modifier and TypeMethodDescriptionstatic TickResultnext()Runs the plugin again on the next server tick.static TickResultwait(int ticks) Waits the given number of server ticks before running the plugin again.static TickResultwaitUntil(BooleanSupplier condition, int timeout) Waits until the supplied condition is true or the timeout elapses.static TickResultwaitUntil(BooleanSupplier condition, BooleanSupplier reset, int timeout) Waits until the supplied condition is true or the timeout elapses, resetting the timeout whenever the reset condition is true.
-
Method Details
-
next
Runs the plugin again on the next server tick. -
wait
Waits the given number of server ticks before running the plugin again. A wait of 1 is the same asnext() -
waitUntil
Waits until the supplied condition is true or the timeout elapses. -
waitUntil
Waits until the supplied condition is true or the timeout elapses, resetting the timeout whenever the reset condition is true.
-