Interface WorldClock

All Superinterfaces:
Keyed, Wrapper

@NullMarked @AsOf("2.4.0") public interface WorldClock extends Wrapper, Keyed
A reference to a registered world clock.
Since:
2.4.0
  • Field Details

  • Method Details

    • key

      @AsOf("2.4.0") ResourceKey key()
      The registry key this clock points at.
      Specified by:
      key in interface Keyed
      Returns:
      the world clock key
      Since:
      2.4.0
    • reference

      @AsOf("2.4.0") static WorldClock reference(ResourceKey key)
      Creates a reference to a registered world clock.
      Parameters:
      key - the key of an entry in the world-clock registry
      Returns:
      a reference to that world clock
      Since:
      2.4.0