Class TickResult

java.lang.Object
dev.twilite.client.plugins.TickResult

public class TickResult extends Object
Scheduling result returned by TickPlugin.tick().
  • Method Details

    • next

      public static TickResult next()
      Runs the plugin again on the next server tick.
    • wait

      public static TickResult wait(int ticks)
      Waits the given number of server ticks before running the plugin again. A wait of 1 is the same as next()
    • waitUntil

      public static TickResult waitUntil(BooleanSupplier condition, int timeout)
      Waits until the supplied condition is true or the timeout elapses.
    • waitUntil

      public static TickResult waitUntil(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.