Enum Class WorldTime

java.lang.Object
java.lang.Enum<WorldTime>
com.pixelmonmod.pixelmon.api.world.WorldTime
All Implemented Interfaces:
ITranslatable, Serializable, Comparable<WorldTime>, Constable

public enum WorldTime extends Enum<WorldTime> implements ITranslatable
Gets the world time as a block of time in the day (i.e. dawn)
  • Enum Constant Details

    • DAWN

      public static final WorldTime DAWN
    • MORNING

      public static final WorldTime MORNING
    • DAY

      public static final WorldTime DAY
    • MIDDAY

      public static final WorldTime MIDDAY
    • AFTERNOON

      public static final WorldTime AFTERNOON
    • DUSK

      public static final WorldTime DUSK
    • NIGHT

      public static final WorldTime NIGHT
    • MIDNIGHT

      public static final WorldTime MIDNIGHT
  • Method Details

    • values

      public static WorldTime[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WorldTime valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTickCondition

      public LongPredicate getTickCondition()
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface ITranslatable
    • getCurrent

      public static List<WorldTime> getCurrent(net.minecraft.world.level.Level world)