Package net.minecraft.entity.passive
Enum Class SalmonEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<SalmonEntity.Variant>,Constable,StringIdentifiable
- Enclosing class:
SalmonEntity
public static enum SalmonEntity.Variant
extends Enum<SalmonEntity.Variant>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/SalmonEntity$Variantintermediary net/minecraft/class_1462$class_9869official crt$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<SalmonEntity.Variant> static final SalmonEntity.Variant(package private) static final IntFunction<SalmonEntity.Variant> private final String(package private) final intstatic final PacketCodec<ByteBuf, SalmonEntity.Variant> (package private) final floatFields 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) intgetIndex()static SalmonEntity.VariantReturns the enum constant of this class with the specified name.static SalmonEntity.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALL
- Mappings:
Namespace Name Mixin selector named SMALLLnet/minecraft/entity/passive/SalmonEntity$Variant;SMALL:Lnet/minecraft/entity/passive/SalmonEntity$Variant;intermediary field_52470Lnet/minecraft/class_1462$class_9869;field_52470:Lnet/minecraft/class_1462$class_9869;official aLcrt$a;a:Lcrt$a;
-
MEDIUM
- Mappings:
Namespace Name Mixin selector named MEDIUMLnet/minecraft/entity/passive/SalmonEntity$Variant;MEDIUM:Lnet/minecraft/entity/passive/SalmonEntity$Variant;intermediary field_52471Lnet/minecraft/class_1462$class_9869;field_52471:Lnet/minecraft/class_1462$class_9869;official bLcrt$a;b:Lcrt$a;
-
LARGE
- Mappings:
Namespace Name Mixin selector named LARGELnet/minecraft/entity/passive/SalmonEntity$Variant;LARGE:Lnet/minecraft/entity/passive/SalmonEntity$Variant;intermediary field_52472Lnet/minecraft/class_1462$class_9869;field_52472:Lnet/minecraft/class_1462$class_9869;official cLcrt$a;c:Lcrt$a;
-
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/entity/passive/SalmonEntity$Variant;DEFAULT:Lnet/minecraft/entity/passive/SalmonEntity$Variant;intermediary field_57618Lnet/minecraft/class_1462$class_9869;field_57618:Lnet/minecraft/class_1462$class_9869;official dLcrt$a;d:Lcrt$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/SalmonEntity$Variant;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;intermediary field_52473Lnet/minecraft/class_1462$class_9869;field_52473:Lnet/minecraft/class_3542$class_7292;official eLcrt$a;e:Lbgg$a;
-
FROM_INDEX
- Mappings:
Namespace Name Mixin selector named FROM_INDEXLnet/minecraft/entity/passive/SalmonEntity$Variant;FROM_INDEX:Ljava/util/function/IntFunction;intermediary field_55008Lnet/minecraft/class_1462$class_9869;field_55008:Ljava/util/function/IntFunction;official gLcrt$a;g:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/SalmonEntity$Variant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55967Lnet/minecraft/class_1462$class_9869;field_55967:Lnet/minecraft/class_9139;official fLcrt$a;f:Laae;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/entity/passive/SalmonEntity$Variant;id:Ljava/lang/String;intermediary field_52474Lnet/minecraft/class_1462$class_9869;field_52474:Ljava/lang/String;official hLcrt$a;h:Ljava/lang/String;
-
index
final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/entity/passive/SalmonEntity$Variant;index:Iintermediary field_55009Lnet/minecraft/class_1462$class_9869;field_55009:Iofficial iLcrt$a;i:I
-
scale
final float scale- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/entity/passive/SalmonEntity$Variant;scale:Fintermediary field_53975Lnet/minecraft/class_1462$class_9869;field_53975:Fofficial jLcrt$a;j:F
-
-
Constructor Details
-
Variant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/SalmonEntity$Variant;<init>(Ljava/lang/String;ILjava/lang/String;IF)Vintermediary <init>Lnet/minecraft/class_1462$class_9869;<init>(Ljava/lang/String;ILjava/lang/String;IF)Vofficial <init>Lcrt$a;<init>(Ljava/lang/String;ILjava/lang/String;IF)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
-
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 cLbgg;c()Ljava/lang/String;
-
getIndex
int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/entity/passive/SalmonEntity$Variant;getIndex()Iintermediary method_65116Lnet/minecraft/class_1462$class_9869;method_65116()Iofficial aLcrt$a;a()I
-