Interface Timeline

All Superinterfaces:
Keyed, Wrapper
All Known Subinterfaces:
ComposedTimeline, ReferencedTimeline

@NullMarked @AsOf("3.2.0") public interface Timeline extends Wrapper, Keyed
  • Field Details

    • OVERWORLD_DAY

      static final Timeline OVERWORLD_DAY
    • MOON

      static final Timeline MOON
    • VILLAGER_SCHEDULE

      static final Timeline VILLAGER_SCHEDULE
    • EARLY_GAME

      static final Timeline EARLY_GAME
    • OVERWORLD

      static final Set<Timeline> OVERWORLD
  • Method Details

    • key

      @AsOf("3.2.0") ResourceKey key()
      The registry key of this timeline.
      Specified by:
      key in interface Keyed
      Returns:
      the registry key of this timeline
      Since:
      3.2.0
    • reference

      @AsOf("3.2.0") static ReferencedTimeline reference(ResourceKey key)
      Creates a timeline reference to the given timeline.
      Parameters:
      key - the key of the timeline to reference
      Returns:
      a timeline reference to the given timeline
      Since:
      3.2.0
    • wrap

      @AsOf("3.3.0") @Experimental default Timeline wrap()
      Resolves this timeline's key in Minecraft's registry and returns its registry-backed wrapper.
      Returns:
      the registered timeline wrapper
      Since:
      3.3.0
    • builder

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