Interface ComposedTimeline
- All Superinterfaces:
Keyed, Registerable<ComposedTimeline>, Timeline, Wrapper
@NullMarked
@AsOf("3.2.0")
public interface ComposedTimeline
extends Timeline, Registerable<ComposedTimeline>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface Timeline
EARLY_GAME, MOON, OVERWORLD, OVERWORLD_DAY, VILLAGER_SCHEDULE -
Method Summary
Modifier and TypeMethodDescriptionstatic ComposedTimeline.Builderbuilder()Creates a new timeline builder.clock()The world clock this timeline is based on.static ComposedTimelineof(ResourceKey key, WorldClock clock, @Nullable Integer periodTicks, List<AttributeTrack<?>> tracks, List<TimeMarker> timeMarkers) Creates a new timeline.The length of one repetition of this timeline.The time markers of this timeline.default ComposedTimeline.BuilderCreates a new builder from this timeline.List<AttributeTrack<?>> tracks()The attribute tracks of this timeline.Methods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
clock
The world clock this timeline is based on.- Returns:
- the world clock this timeline is based on
- Since:
- 3.2.0
-
periodTicks
-
tracks
The attribute tracks of this timeline.- Returns:
- the attribute tracks of this timeline
- Since:
- 3.2.0
-
timeMarkers
The time markers of this timeline.- Returns:
- the time markers of this timeline
- Since:
- 3.2.0
-
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 timelineclock- the world clock of the timelineperiodTicks- the length of one repetition of the timeline, or null if the timeline should run oncetracks- the attribute tracks of the timelinetimeMarkers- the time markers of the timeline- Returns:
- a new timeline
- Since:
- 3.2.0
-
builder
Creates a new timeline builder.- Returns:
- a new timeline builder
- Since:
- 3.2.0
-