Package net.minecraft.entity.passive
Enum Class MooshroomEntity.Type
- All Implemented Interfaces:
Serializable,Comparable<MooshroomEntity.Type>,Constable,StringIdentifiable
- Enclosing class:
MooshroomEntity
public static enum MooshroomEntity.Type
extends Enum<MooshroomEntity.Type>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/MooshroomEntity$Typeintermediary net/minecraft/class_1438$class_4053official cgi$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 StringIdentifiable.EnumCodec<MooshroomEntity.Type> private final RegistryKey<LootTable> private final BlockState(package private) final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateType(String name, BlockState mushroom, RegistryKey<LootTable> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.(package private) static MooshroomEntity.Typestatic MooshroomEntity.TypeReturns the enum constant of this class with the specified name.static MooshroomEntity.Type[]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$Type;RED:Lnet/minecraft/entity/passive/MooshroomEntity$Type;intermediary field_18109Lnet/minecraft/class_1438$class_4053;field_18109:Lnet/minecraft/class_1438$class_4053;official aLcgi$a;a:Lcgi$a;
-
BROWN
- Mappings:
Namespace Name Mixin selector named BROWNLnet/minecraft/entity/passive/MooshroomEntity$Type;BROWN:Lnet/minecraft/entity/passive/MooshroomEntity$Type;intermediary field_18110Lnet/minecraft/class_1438$class_4053;field_18110:Lnet/minecraft/class_1438$class_4053;official bLcgi$a;b:Lcgi$a;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/MooshroomEntity$Type;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;intermediary field_41549Lnet/minecraft/class_1438$class_4053;field_41549:Lnet/minecraft/class_3542$class_7292;official cLcgi$a;c:Lazy$a;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/entity/passive/MooshroomEntity$Type;name:Ljava/lang/String;intermediary field_18111Lnet/minecraft/class_1438$class_4053;field_18111:Ljava/lang/String;official dLcgi$a;d:Ljava/lang/String;
-
mushroom
- Mappings:
Namespace Name Mixin selector named mushroomLnet/minecraft/entity/passive/MooshroomEntity$Type;mushroom:Lnet/minecraft/block/BlockState;intermediary field_18112Lnet/minecraft/class_1438$class_4053;field_18112:Lnet/minecraft/class_2680;official eLcgi$a;e:Ldua;
-
field_52468
- Mappings:
Namespace Name Mixin selector named field_52468Lnet/minecraft/entity/passive/MooshroomEntity$Type;field_52468:Lnet/minecraft/registry/RegistryKey;intermediary field_52468Lnet/minecraft/class_1438$class_4053;field_52468:Lnet/minecraft/class_5321;official fLcgi$a;f:Lala;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/MooshroomEntity$Type;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/block/BlockState;Lnet/minecraft/registry/RegistryKey;)Vintermediary <init>Lnet/minecraft/class_1438$class_4053;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_2680;Lnet/minecraft/class_5321;)Vofficial <init>Lcgi$a;<init>(Ljava/lang/String;ILjava/lang/String;Ldua;Lala;)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$Type;getMushroomState()Lnet/minecraft/block/BlockState;intermediary method_18437Lnet/minecraft/class_1438$class_4053;method_18437()Lnet/minecraft/class_2680;official aLcgi$a;a()Ldua;
-
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 cLazy;c()Ljava/lang/String;
-
method_61470
- Mappings:
Namespace Name Mixin selector named method_61470Lnet/minecraft/entity/passive/MooshroomEntity$Type;method_61470()Lnet/minecraft/registry/RegistryKey;intermediary method_61470Lnet/minecraft/class_1438$class_4053;method_61470()Lnet/minecraft/class_5321;official bLcgi$a;b()Lala;
-
fromName
- Mappings:
Namespace Name Mixin selector named fromNameLnet/minecraft/entity/passive/MooshroomEntity$Type;fromName(Ljava/lang/String;)Lnet/minecraft/entity/passive/MooshroomEntity$Type;intermediary method_18441Lnet/minecraft/class_1438$class_4053;method_18441(Ljava/lang/String;)Lnet/minecraft/class_1438$class_4053;official aLcgi$a;a(Ljava/lang/String;)Lcgi$a;
-