Interface TimelineRegistryEntry.TimeMarker

Enclosing interface:
TimelineRegistryEntry

@NonExtendable public static interface TimelineRegistryEntry.TimeMarker
A time marker defined by a timeline.
  • Method Summary

    Modifier and Type
    Method
    Description
    of(@NonNegative int ticks, boolean showInCommands)
    Creates a new time marker instance based on the passed values.
    boolean
    Gets whether this marker should be suggested in commands.
    @NonNegative int
    Gets the tick this marker occurs on.
  • 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 by ticks()
      showInCommands - whether the marker should be suggested in commands, as returned by showInCommands()
      Returns:
      the created instance