Package net.minecraft.entity.passive
Enum Class AxolotlEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<AxolotlEntity.Variant>,Constable,StringIdentifiable
- Enclosing class:
AxolotlEntity
public static enum AxolotlEntity.Variant
extends Enum<AxolotlEntity.Variant>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/AxolotlEntity$Variantintermediary net/minecraft/class_5762$class_5767official cgq$d
-
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 Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<AxolotlEntity.Variant> static final com.mojang.serialization.Codec<AxolotlEntity.Variant> private final intprivate final Stringprivate final booleanFields 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.static AxolotlEntity.VariantbyId(int id) intgetId()getName()private static AxolotlEntity.Variantstatic AxolotlEntity.VariantgetRandomNatural(Random random) static AxolotlEntity.VariantgetRandomUnnatural(Random random) static AxolotlEntity.VariantReturns the enum constant of this class with the specified name.static AxolotlEntity.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LUCY
- Mappings:
Namespace Name Mixin selector named LUCYLnet/minecraft/entity/passive/AxolotlEntity$Variant;LUCY:Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary field_28341Lnet/minecraft/class_5762$class_5767;field_28341:Lnet/minecraft/class_5762$class_5767;official aLcgq$d;a:Lcgq$d;
-
WILD
- Mappings:
Namespace Name Mixin selector named WILDLnet/minecraft/entity/passive/AxolotlEntity$Variant;WILD:Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary field_28342Lnet/minecraft/class_5762$class_5767;field_28342:Lnet/minecraft/class_5762$class_5767;official bLcgq$d;b:Lcgq$d;
-
GOLD
- Mappings:
Namespace Name Mixin selector named GOLDLnet/minecraft/entity/passive/AxolotlEntity$Variant;GOLD:Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary field_28343Lnet/minecraft/class_5762$class_5767;field_28343:Lnet/minecraft/class_5762$class_5767;official cLcgq$d;c:Lcgq$d;
-
CYAN
- Mappings:
Namespace Name Mixin selector named CYANLnet/minecraft/entity/passive/AxolotlEntity$Variant;CYAN:Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary field_28344Lnet/minecraft/class_5762$class_5767;field_28344:Lnet/minecraft/class_5762$class_5767;official dLcgq$d;d:Lcgq$d;
-
BLUE
- Mappings:
Namespace Name Mixin selector named BLUELnet/minecraft/entity/passive/AxolotlEntity$Variant;BLUE:Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary field_28345Lnet/minecraft/class_5762$class_5767;field_28345:Lnet/minecraft/class_5762$class_5767;official eLcgq$d;e:Lcgq$d;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/entity/passive/AxolotlEntity$Variant;BY_ID:Ljava/util/function/IntFunction;intermediary field_28346Lnet/minecraft/class_5762$class_5767;field_28346:Ljava/util/function/IntFunction;official gLcgq$d;g:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/AxolotlEntity$Variant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41585Lnet/minecraft/class_5762$class_5767;field_41585:Lcom/mojang/serialization/Codec;official fLcgq$d;f:Lcom/mojang/serialization/Codec;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/entity/passive/AxolotlEntity$Variant;id:Iintermediary field_28347Lnet/minecraft/class_5762$class_5767;field_28347:Iofficial hLcgq$d;h:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/entity/passive/AxolotlEntity$Variant;name:Ljava/lang/String;intermediary field_28348Lnet/minecraft/class_5762$class_5767;field_28348:Ljava/lang/String;official iLcgq$d;i:Ljava/lang/String;
-
natural
private final boolean natural- Mappings:
Namespace Name Mixin selector named naturalLnet/minecraft/entity/passive/AxolotlEntity$Variant;natural:Zintermediary field_28349Lnet/minecraft/class_5762$class_5767;field_28349:Zofficial jLcgq$d;j:Z
-
-
Constructor Details
-
Variant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/AxolotlEntity$Variant;<init>(Ljava/lang/String;IILjava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_5762$class_5767;<init>(Ljava/lang/String;IILjava/lang/String;Z)Vofficial <init>Lcgq$d;<init>(Ljava/lang/String;IILjava/lang/String;Z)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
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/entity/passive/AxolotlEntity$Variant;getId()Iintermediary method_33233Lnet/minecraft/class_5762$class_5767;method_33233()Iofficial aLcgq$d;a()I
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/entity/passive/AxolotlEntity$Variant;getName()Ljava/lang/String;intermediary method_33238Lnet/minecraft/class_5762$class_5767;method_33238()Ljava/lang/String;official bLcgq$d;b()Ljava/lang/String;
-
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 cLazk;c()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector named byIdLnet/minecraft/entity/passive/AxolotlEntity$Variant;byId(I)Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary method_47928Lnet/minecraft/class_5762$class_5767;method_47928(I)Lnet/minecraft/class_5762$class_5767;official aLcgq$d;a(I)Lcgq$d;
-
getRandomNatural
- Mappings:
Namespace Name Mixin selector named getRandomNaturalLnet/minecraft/entity/passive/AxolotlEntity$Variant;getRandomNatural(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary method_33235Lnet/minecraft/class_5762$class_5767;method_33235(Lnet/minecraft/class_5819;)Lnet/minecraft/class_5762$class_5767;official aLcgq$d;a(Layw;)Lcgq$d;
-
getRandomUnnatural
- Mappings:
Namespace Name Mixin selector named getRandomUnnaturalLnet/minecraft/entity/passive/AxolotlEntity$Variant;getRandomUnnatural(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary method_33240Lnet/minecraft/class_5762$class_5767;method_33240(Lnet/minecraft/class_5819;)Lnet/minecraft/class_5762$class_5767;official bLcgq$d;b(Layw;)Lcgq$d;
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/entity/passive/AxolotlEntity$Variant;getRandom(Lnet/minecraft/util/math/random/Random;Z)Lnet/minecraft/entity/passive/AxolotlEntity$Variant;intermediary method_33236Lnet/minecraft/class_5762$class_5767;method_33236(Lnet/minecraft/class_5819;Z)Lnet/minecraft/class_5762$class_5767;official aLcgq$d;a(Layw;Z)Lcgq$d;
-