Package net.minecraft.entity.passive
Enum Class MooshroomEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<MooshroomEntity.Variant>,Constable,StringIdentifiable
- Enclosing class:
MooshroomEntity
public static enum MooshroomEntity.Variant
extends Enum<MooshroomEntity.Variant>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/MooshroomEntity$Variantintermediary net/minecraft/class_1438$class_4053official cmw$a
-
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 TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MooshroomEntity.Variant> static final MooshroomEntity.Variant(package private) final intprivate static final IntFunction<MooshroomEntity.Variant> private final BlockStateprivate final Stringstatic final PacketCodec<ByteBuf, MooshroomEntity.Variant> Fields 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.(package private) static MooshroomEntity.VariantfromIndex(int index) private intgetIndex()static MooshroomEntity.VariantReturns the enum constant of this class with the specified name.static MooshroomEntity.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED
- Mappings:
Namespace Name Mixin selector named REDLnet/minecraft/entity/passive/MooshroomEntity$Variant;RED:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;intermediary field_18109Lnet/minecraft/class_1438$class_4053;field_18109:Lnet/minecraft/class_1438$class_4053;official aLcmw$a;a:Lcmw$a;
-
BROWN
- Mappings:
Namespace Name Mixin selector named BROWNLnet/minecraft/entity/passive/MooshroomEntity$Variant;BROWN:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;intermediary field_18110Lnet/minecraft/class_1438$class_4053;field_18110:Lnet/minecraft/class_1438$class_4053;official bLcmw$a;b:Lcmw$a;
-
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/entity/passive/MooshroomEntity$Variant;DEFAULT:Lnet/minecraft/entity/passive/MooshroomEntity$Variant;intermediary field_57612Lnet/minecraft/class_1438$class_4053;field_57612:Lnet/minecraft/class_1438$class_4053;official cLcmw$a;c:Lcmw$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/MooshroomEntity$Variant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41549Lnet/minecraft/class_1438$class_4053;field_41549:Lcom/mojang/serialization/Codec;official dLcmw$a;d:Lcom/mojang/serialization/Codec;
-
INDEX_MAPPER
- Mappings:
Namespace Name Mixin selector named INDEX_MAPPERLnet/minecraft/entity/passive/MooshroomEntity$Variant;INDEX_MAPPER:Ljava/util/function/IntFunction;intermediary field_55963Lnet/minecraft/class_1438$class_4053;field_55963:Ljava/util/function/IntFunction;official fLcmw$a;f:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/MooshroomEntity$Variant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55962Lnet/minecraft/class_1438$class_4053;field_55962:Lnet/minecraft/class_9139;official eLcmw$a;e:Lzm;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/entity/passive/MooshroomEntity$Variant;name:Ljava/lang/String;intermediary field_18111Lnet/minecraft/class_1438$class_4053;field_18111:Ljava/lang/String;official gLcmw$a;g:Ljava/lang/String;
-
index
final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/entity/passive/MooshroomEntity$Variant;index:Iintermediary field_55964Lnet/minecraft/class_1438$class_4053;field_55964:Iofficial hLcmw$a;h:I
-
mushroom
- Mappings:
Namespace Name Mixin selector named mushroomLnet/minecraft/entity/passive/MooshroomEntity$Variant;mushroom:Lnet/minecraft/block/BlockState;intermediary field_18112Lnet/minecraft/class_1438$class_4053;field_18112:Lnet/minecraft/class_2680;official iLcmw$a;i:Leeb;
-
-
Constructor Details
-
Variant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/MooshroomEntity$Variant;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_1438$class_4053;<init>(Ljava/lang/String;ILjava/lang/String;ILnet/minecraft/class_2680;)Vofficial <init>Lcmw$a;<init>(Ljava/lang/String;ILjava/lang/String;ILeeb;)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
-
getMushroomState
- Mappings:
Namespace Name Mixin selector named getMushroomStateLnet/minecraft/entity/passive/MooshroomEntity$Variant;getMushroomState()Lnet/minecraft/block/BlockState;intermediary method_18437Lnet/minecraft/class_1438$class_4053;method_18437()Lnet/minecraft/class_2680;official aLcmw$a;a()Leeb;
-
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 cLbda;c()Ljava/lang/String;
-
getIndex
private int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/entity/passive/MooshroomEntity$Variant;getIndex()Iintermediary method_66678Lnet/minecraft/class_1438$class_4053;method_66678()Iofficial bLcmw$a;b()I
-
fromIndex
- Mappings:
Namespace Name Mixin selector named fromIndexLnet/minecraft/entity/passive/MooshroomEntity$Variant;fromIndex(I)Lnet/minecraft/entity/passive/MooshroomEntity$Variant;intermediary method_66677Lnet/minecraft/class_1438$class_4053;method_66677(I)Lnet/minecraft/class_1438$class_4053;official aLcmw$a;a(I)Lcmw$a;
-