Interface TimelineRegistryEntry.TimeMarker
- Enclosing interface:
TimelineRegistryEntry
A time marker defined by a timeline.
-
Method Details
-
ticks
@NonNegative int ticks()Gets the tick this marker occurs on.- Returns:
- the marker tick
-
showInCommands
boolean showInCommands()Gets whether this marker should be suggested in commands.- Returns:
- whether the marker should be suggested in commands
-
of
@Contract(value="_, _ -> new", pure=true) static TimelineRegistryEntry.TimeMarker of(@NonNegative int ticks, boolean showInCommands) Creates a new time marker instance based on the passed values.- Parameters:
ticks- the tick this marker occurs on, as returned byticks()showInCommands- whether the marker should be suggested in commands, as returned byshowInCommands()- Returns:
- the created instance
-