Enum Class MoonPhase

java.lang.Object
java.lang.Enum<MoonPhase>
net.minecraft.world.MoonPhase
All Implemented Interfaces:
Serializable, Comparable<MoonPhase>, Constable, StringIdentifiable

public enum MoonPhase extends Enum<MoonPhase> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/world/MoonPhase
intermediary net/minecraft/class_12131
official duy
  • Enum Constant Details

    • FULL_MOON

      public static final MoonPhase FULL_MOON
      Mappings:
      Namespace Name Mixin selector
      named FULL_MOON Lnet/minecraft/world/MoonPhase;FULL_MOON:Lnet/minecraft/world/MoonPhase;
      intermediary field_63425 Lnet/minecraft/class_12131;field_63425:Lnet/minecraft/class_12131;
      official a Lduy;a:Lduy;
    • WANING_GIBBOUS

      public static final MoonPhase WANING_GIBBOUS
      Mappings:
      Namespace Name Mixin selector
      named WANING_GIBBOUS Lnet/minecraft/world/MoonPhase;WANING_GIBBOUS:Lnet/minecraft/world/MoonPhase;
      intermediary field_63426 Lnet/minecraft/class_12131;field_63426:Lnet/minecraft/class_12131;
      official b Lduy;b:Lduy;
    • THIRD_QUARTER

      public static final MoonPhase THIRD_QUARTER
      Mappings:
      Namespace Name Mixin selector
      named THIRD_QUARTER Lnet/minecraft/world/MoonPhase;THIRD_QUARTER:Lnet/minecraft/world/MoonPhase;
      intermediary field_63427 Lnet/minecraft/class_12131;field_63427:Lnet/minecraft/class_12131;
      official c Lduy;c:Lduy;
    • WANING_CRESCENT

      public static final MoonPhase WANING_CRESCENT
      Mappings:
      Namespace Name Mixin selector
      named WANING_CRESCENT Lnet/minecraft/world/MoonPhase;WANING_CRESCENT:Lnet/minecraft/world/MoonPhase;
      intermediary field_63428 Lnet/minecraft/class_12131;field_63428:Lnet/minecraft/class_12131;
      official d Lduy;d:Lduy;
    • NEW_MOON

      public static final MoonPhase NEW_MOON
      Mappings:
      Namespace Name Mixin selector
      named NEW_MOON Lnet/minecraft/world/MoonPhase;NEW_MOON:Lnet/minecraft/world/MoonPhase;
      intermediary field_63429 Lnet/minecraft/class_12131;field_63429:Lnet/minecraft/class_12131;
      official e Lduy;e:Lduy;
    • WAXING_CRESCENT

      public static final MoonPhase WAXING_CRESCENT
      Mappings:
      Namespace Name Mixin selector
      named WAXING_CRESCENT Lnet/minecraft/world/MoonPhase;WAXING_CRESCENT:Lnet/minecraft/world/MoonPhase;
      intermediary field_63430 Lnet/minecraft/class_12131;field_63430:Lnet/minecraft/class_12131;
      official f Lduy;f:Lduy;
    • FIRST_QUARTER

      public static final MoonPhase FIRST_QUARTER
      Mappings:
      Namespace Name Mixin selector
      named FIRST_QUARTER Lnet/minecraft/world/MoonPhase;FIRST_QUARTER:Lnet/minecraft/world/MoonPhase;
      intermediary field_63431 Lnet/minecraft/class_12131;field_63431:Lnet/minecraft/class_12131;
      official g Lduy;g:Lduy;
    • WAXING_GIBBOUS

      public static final MoonPhase WAXING_GIBBOUS
      Mappings:
      Namespace Name Mixin selector
      named WAXING_GIBBOUS Lnet/minecraft/world/MoonPhase;WAXING_GIBBOUS:Lnet/minecraft/world/MoonPhase;
      intermediary field_63432 Lnet/minecraft/class_12131;field_63432:Lnet/minecraft/class_12131;
      official h Lduy;h:Lduy;
  • Field Details

    • COUNT

      public static final int COUNT
      Mappings:
      Namespace Name Mixin selector
      named COUNT Lnet/minecraft/world/MoonPhase;COUNT:I
      intermediary field_63433 Lnet/minecraft/class_12131;field_63433:I
      official i Lduy;i:I
    • index

      private final int index
      Mappings:
      Namespace Name Mixin selector
      named index Lnet/minecraft/world/MoonPhase;index:I
      intermediary field_63434 Lnet/minecraft/class_12131;field_63434:I
      official j Lduy;j:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/MoonPhase;name:Ljava/lang/String;
      intermediary field_63435 Lnet/minecraft/class_12131;field_63435:Ljava/lang/String;
      official k Lduy;k:Ljava/lang/String;
  • Constructor Details

    • MoonPhase

      private MoonPhase(int index, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/MoonPhase;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_12131;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lduy;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • 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
    • getIndex

      public int getIndex()
      Mappings:
      Namespace Name Mixin selector
      named getIndex Lnet/minecraft/world/MoonPhase;getIndex()I
      intermediary method_75261 Lnet/minecraft/class_12131;method_75261()I
      official a Lduy;a()I
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbhg;c()Ljava/lang/String;