Interface Clock


public sealed interface Clock
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    boolean
     
    float
    Gets the rate at which the clock advances per tick, in partial ticks.
    void
    rate(float rate)
    Sets the rate at which the clock advances per tick, in partial ticks.
    void
     
    long
    Returns the current time (in ticks).
    void
    time(long time)
    Sets the current time (in ticks).
  • Method Details

    • clock

    • rate

      float rate()

      Gets the rate at which the clock advances per tick, in partial ticks.

      The default is 1 (advance one tick per tick).

    • rate

      void rate(float rate)

      Sets the rate at which the clock advances per tick, in partial ticks.

      The default is 1 (advance one tick per tick).

    • time

      long time()
      Returns the current time (in ticks).
    • time

      void time(long time)
      Sets the current time (in ticks).
    • paused

      boolean paused()
    • pause

      void pause()
    • resume

      void resume()