Enum Class MoonPhase

java.lang.Object
java.lang.Enum<MoonPhase>
net.risingworld.api.utils.MoonPhase
All Implemented Interfaces:
Serializable, Comparable<MoonPhase>, Constable

public enum MoonPhase extends Enum<MoonPhase>
All moon phases. The moon phase changes automatically every day, unless the server has set a fixed moon phase (which can also be BloodMoon).
  • Enum Constant Details

    • NewMoon

      public static final MoonPhase NewMoon
    • WaxingMoon1

      public static final MoonPhase WaxingMoon1
    • WaxingMoon2

      public static final MoonPhase WaxingMoon2
    • WaxingMoon3

      public static final MoonPhase WaxingMoon3
    • WaxingMoon4

      public static final MoonPhase WaxingMoon4
    • WaxingMoon5

      public static final MoonPhase WaxingMoon5
    • FullMoon

      public static final MoonPhase FullMoon
    • WaningMoon1

      public static final MoonPhase WaningMoon1
    • WaningMoon2

      public static final MoonPhase WaningMoon2
    • WaningMoon3

      public static final MoonPhase WaningMoon3
    • WaningMoon4

      public static final MoonPhase WaningMoon4
    • WaningMoon5

      public static final MoonPhase WaningMoon5
    • BloodMoon

      public static final MoonPhase BloodMoon
      Only available as fixed moon phase
  • Method Details

    • values

      public static MoonPhase[] 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 MoonPhase 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
    • get

      public static MoonPhase get(int ordinal)