Class TimelineKeys

java.lang.Object
io.papermc.paper.registry.keys.TimelineKeys

@NullMarked @GeneratedClass public final class TimelineKeys extends Object
Vanilla keys for RegistryKey.TIMELINE.
API Note:
The fields provided here are a direct representation of what is available from the vanilla game source. They may be changed (including removals) on any Minecraft version bump, so cross-version compatibility is not provided on the same level as it is on most of the other API.
  • Field Details

    • DAY

      public static final TypedKey<Timeline> DAY
      minecraft:day
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • EARLY_GAME

      public static final TypedKey<Timeline> EARLY_GAME
      minecraft:early_game
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MOON

      public static final TypedKey<Timeline> MOON
      minecraft:moon
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • VILLAGER_SCHEDULE

      public static final TypedKey<Timeline> VILLAGER_SCHEDULE
      minecraft:villager_schedule
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
  • Method Details

    • create

      public static TypedKey<Timeline> create(Key key)
      Creates a typed key for Timeline in the registry minecraft:timeline.
      Parameters:
      key - the value's key in the registry
      Returns:
      a new typed key