Package net.minecraft.world
Enum Class MoonPhase
- All Implemented Interfaces:
Serializable,Comparable<MoonPhase>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/world/MoonPhaseintermediary net/minecraft/class_12131official dvq
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MoonPhase> static final intstatic final intprivate final intprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.intgetIndex()intstatic MoonPhaseReturns the enum constant of this class with the specified name.static MoonPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL_MOON
- Mappings:
Namespace Name Mixin selector named FULL_MOONLnet/minecraft/world/MoonPhase;FULL_MOON:Lnet/minecraft/world/MoonPhase;intermediary field_63425Lnet/minecraft/class_12131;field_63425:Lnet/minecraft/class_12131;official aLdvq;a:Ldvq;
-
WANING_GIBBOUS
- Mappings:
Namespace Name Mixin selector named WANING_GIBBOUSLnet/minecraft/world/MoonPhase;WANING_GIBBOUS:Lnet/minecraft/world/MoonPhase;intermediary field_63426Lnet/minecraft/class_12131;field_63426:Lnet/minecraft/class_12131;official bLdvq;b:Ldvq;
-
THIRD_QUARTER
- Mappings:
Namespace Name Mixin selector named THIRD_QUARTERLnet/minecraft/world/MoonPhase;THIRD_QUARTER:Lnet/minecraft/world/MoonPhase;intermediary field_63427Lnet/minecraft/class_12131;field_63427:Lnet/minecraft/class_12131;official cLdvq;c:Ldvq;
-
WANING_CRESCENT
- Mappings:
Namespace Name Mixin selector named WANING_CRESCENTLnet/minecraft/world/MoonPhase;WANING_CRESCENT:Lnet/minecraft/world/MoonPhase;intermediary field_63428Lnet/minecraft/class_12131;field_63428:Lnet/minecraft/class_12131;official dLdvq;d:Ldvq;
-
NEW_MOON
- Mappings:
Namespace Name Mixin selector named NEW_MOONLnet/minecraft/world/MoonPhase;NEW_MOON:Lnet/minecraft/world/MoonPhase;intermediary field_63429Lnet/minecraft/class_12131;field_63429:Lnet/minecraft/class_12131;official eLdvq;e:Ldvq;
-
WAXING_CRESCENT
- Mappings:
Namespace Name Mixin selector named WAXING_CRESCENTLnet/minecraft/world/MoonPhase;WAXING_CRESCENT:Lnet/minecraft/world/MoonPhase;intermediary field_63430Lnet/minecraft/class_12131;field_63430:Lnet/minecraft/class_12131;official fLdvq;f:Ldvq;
-
FIRST_QUARTER
- Mappings:
Namespace Name Mixin selector named FIRST_QUARTERLnet/minecraft/world/MoonPhase;FIRST_QUARTER:Lnet/minecraft/world/MoonPhase;intermediary field_63431Lnet/minecraft/class_12131;field_63431:Lnet/minecraft/class_12131;official gLdvq;g:Ldvq;
-
WAXING_GIBBOUS
- Mappings:
Namespace Name Mixin selector named WAXING_GIBBOUSLnet/minecraft/world/MoonPhase;WAXING_GIBBOUS:Lnet/minecraft/world/MoonPhase;intermediary field_63432Lnet/minecraft/class_12131;field_63432:Lnet/minecraft/class_12131;official hLdvq;h:Ldvq;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/MoonPhase;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64378Lnet/minecraft/class_12131;field_64378:Lcom/mojang/serialization/Codec;official iLdvq;i:Lcom/mojang/serialization/Codec;
-
COUNT
public static final int COUNT- Mappings:
Namespace Name Mixin selector named COUNTLnet/minecraft/world/MoonPhase;COUNT:Iintermediary field_63433Lnet/minecraft/class_12131;field_63433:Iofficial jLdvq;j:I
-
DAY_LENGTH
public static final int DAY_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named DAY_LENGTHLnet/minecraft/world/MoonPhase;DAY_LENGTH:Iintermediary field_64379Lnet/minecraft/class_12131;field_64379:Iofficial kLdvq;k:I
-
index
private final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/world/MoonPhase;index:Iintermediary field_63434Lnet/minecraft/class_12131;field_63434:Iofficial lLdvq;l:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/world/MoonPhase;name:Ljava/lang/String;intermediary field_63435Lnet/minecraft/class_12131;field_63435:Ljava/lang/String;official mLdvq;m:Ljava/lang/String;
-
-
Constructor Details
-
MoonPhase
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/MoonPhase;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_12131;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Ldvq;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/world/MoonPhase;getIndex()Iintermediary method_75261Lnet/minecraft/class_12131;method_75261()Iofficial aLdvq;a()I
-
phaseTicks
public int phaseTicks()- Mappings:
Namespace Name Mixin selector named phaseTicksLnet/minecraft/world/MoonPhase;phaseTicks()Iintermediary method_76466Lnet/minecraft/class_12131;method_76466()Iofficial bLdvq;b()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhg;c()Ljava/lang/String;
-