Interface ComposedTimeline

All Superinterfaces:
Keyed, Registerable<ComposedTimeline>, Timeline, Wrapper

@NullMarked @AsOf("3.2.0") public interface ComposedTimeline extends Timeline, Registerable<ComposedTimeline>
  • Method Details

    • clock

      @AsOf("3.2.0") WorldClock clock()
      The world clock this timeline is based on.
      Returns:
      the world clock this timeline is based on
      Since:
      3.2.0
    • periodTicks

      @AsOf("3.2.0") Optional<Integer> periodTicks()
      The length of one repetition of this timeline.
      Returns:
      the length of one repetition of this timeline, or empty if the timeline should run once
      Since:
      3.2.0
    • tracks

      @AsOf("3.2.0") List<AttributeTrack<?>> tracks()
      The attribute tracks of this timeline.
      Returns:
      the attribute tracks of this timeline
      Since:
      3.2.0
    • timeMarkers

      @AsOf("3.2.0") List<TimeMarker> timeMarkers()
      The time markers of this timeline.
      Returns:
      the time markers of this timeline
      Since:
      3.2.0
    • toBuilder

      @AsOf("3.2.0") default ComposedTimeline.Builder toBuilder()
      Creates a new builder from this timeline.
      Returns:
      a new builder from this timeline
      Since:
      3.2.0
    • of

      @AsOf("3.2.0") static ComposedTimeline of(ResourceKey key, WorldClock clock, @Nullable Integer periodTicks, List<AttributeTrack<?>> tracks, List<TimeMarker> timeMarkers)
      Creates a new timeline.
      Parameters:
      key - the key of the timeline
      clock - the world clock of the timeline
      periodTicks - the length of one repetition of the timeline, or null if the timeline should run once
      tracks - the attribute tracks of the timeline
      timeMarkers - the time markers of the timeline
      Returns:
      a new timeline
      Since:
      3.2.0
    • builder

      @AsOf("3.2.0") static ComposedTimeline.Builder builder()
      Creates a new timeline builder.
      Returns:
      a new timeline builder
      Since:
      3.2.0