Interface Timeline

All Superinterfaces:
Keyed, Keyed

@NonExtendable public interface Timeline extends Keyed
Represents a timeline that can apply environment attributes or define time markers for a WorldClock.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the clock that drives this timeline.
    Gets the period of this timeline in ticks, if defined.

    Methods inherited from interface Keyed

    getKey, key
  • Method Details

    • clock

      WorldClock clock()
      Gets the clock that drives this timeline.
      Returns:
      the clock
    • periodTicks

      OptionalInt periodTicks()
      Gets the period of this timeline in ticks, if defined.
      Returns:
      the period in ticks, or an empty OptionalInt if not defined