Package net.minecraft.entity.passive
Enum Class ParrotEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<ParrotEntity.Variant>,Constable,StringIdentifiable
- Enclosing class:
ParrotEntity
public static enum ParrotEntity.Variant
extends Enum<ParrotEntity.Variant>
implements StringIdentifiable
- Mappings:
Namespace Name official bqc$bintermediary net/minecraft/class_1453$class_7989named net/minecraft/entity/passive/ParrotEntity$Variant
-
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.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<ParrotEntity.Variant>(package private) final intprivate final Stringprivate static final ParrotEntity.Variant[]Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static ParrotEntity.VariantbyIndex(int index) intgetIndex()static ParrotEntity.VariantReturns the enum constant of this class with the specified name.static ParrotEntity.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED_BLUE
- Mappings:
Namespace Name Mixin selector official aLbqc$b;a:Lbqc$b;intermediary field_41550Lnet/minecraft/class_1453$class_7989;field_41550:Lnet/minecraft/class_1453$class_7989;named RED_BLUELnet/minecraft/entity/passive/ParrotEntity$Variant;RED_BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
BLUE
- Mappings:
Namespace Name Mixin selector official bLbqc$b;b:Lbqc$b;intermediary field_41551Lnet/minecraft/class_1453$class_7989;field_41551:Lnet/minecraft/class_1453$class_7989;named BLUELnet/minecraft/entity/passive/ParrotEntity$Variant;BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
GREEN
- Mappings:
Namespace Name Mixin selector official cLbqc$b;c:Lbqc$b;intermediary field_41552Lnet/minecraft/class_1453$class_7989;field_41552:Lnet/minecraft/class_1453$class_7989;named GREENLnet/minecraft/entity/passive/ParrotEntity$Variant;GREEN:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
YELLOW_BLUE
- Mappings:
Namespace Name Mixin selector official dLbqc$b;d:Lbqc$b;intermediary field_41553Lnet/minecraft/class_1453$class_7989;field_41553:Lnet/minecraft/class_1453$class_7989;named YELLOW_BLUELnet/minecraft/entity/passive/ParrotEntity$Variant;YELLOW_BLUE:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
GRAY
- Mappings:
Namespace Name Mixin selector official eLbqc$b;e:Lbqc$b;intermediary field_41554Lnet/minecraft/class_1453$class_7989;field_41554:Lnet/minecraft/class_1453$class_7989;named GRAYLnet/minecraft/entity/passive/ParrotEntity$Variant;GRAY:Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official fLbqc$b;f:Lcom/mojang/serialization/Codec;intermediary field_41555Lnet/minecraft/class_1453$class_7989;field_41555:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/entity/passive/ParrotEntity$Variant;CODEC:Lcom/mojang/serialization/Codec;
-
VALUES
- Mappings:
Namespace Name Mixin selector official gLbqc$b;g:[Lbqc$b;intermediary field_41556Lnet/minecraft/class_1453$class_7989;field_41556:[Lnet/minecraft/class_1453$class_7989;named VALUESLnet/minecraft/entity/passive/ParrotEntity$Variant;VALUES:[Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
index
final int index- Mappings:
Namespace Name Mixin selector official hLbqc$b;h:Iintermediary field_41557Lnet/minecraft/class_1453$class_7989;field_41557:Inamed indexLnet/minecraft/entity/passive/ParrotEntity$Variant;index:I
-
name
- Mappings:
Namespace Name Mixin selector official iLbqc$b;i:Ljava/lang/String;intermediary field_41558Lnet/minecraft/class_1453$class_7989;field_41558:Ljava/lang/String;named nameLnet/minecraft/entity/passive/ParrotEntity$Variant;name:Ljava/lang/String;
-
-
Constructor Details
-
Variant
- Mappings:
Namespace Name Mixin selector official <init>Lbqc$b;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1453$class_7989;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/entity/passive/ParrotEntity$Variant;<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 official aLbqc$b;a()Iintermediary method_47849Lnet/minecraft/class_1453$class_7989;method_47849()Inamed getIndexLnet/minecraft/entity/passive/ParrotEntity$Variant;getIndex()I
-
byIndex
- Mappings:
Namespace Name Mixin selector official aLbqc$b;a(I)Lbqc$b;intermediary method_47850Lnet/minecraft/class_1453$class_7989;method_47850(I)Lnet/minecraft/class_1453$class_7989;named byIndexLnet/minecraft/entity/passive/ParrotEntity$Variant;byIndex(I)Lnet/minecraft/entity/passive/ParrotEntity$Variant;
-
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 official cLaor;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-