Package net.minecraft.util
Enum Class Arm
- All Implemented Interfaces:
Serializable
,Comparable<Arm>
,Constable
,StringIdentifiable
,TranslatableOption
An enum representing an entity's arm.
- See Also:
- Mappings:
Namespace Name official bmf
intermediary net/minecraft/class_1306
named net/minecraft/util/Arm
-
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntFunction<Arm>
static final com.mojang.serialization.Codec<Arm>
private final int
private final String
private final String
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.int
getId()
Returns the arm on the opposite side.static Arm
Returns the enum constant of this class with the specified name.static Arm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.util.TranslatableOption
getText
-
Enum Constant Details
-
LEFT
- Mappings:
Namespace Name Mixin selector official a
Lbmf;a:Lbmf;
intermediary field_6182
Lnet/minecraft/class_1306;field_6182:Lnet/minecraft/class_1306;
named LEFT
Lnet/minecraft/util/Arm;LEFT:Lnet/minecraft/util/Arm;
-
RIGHT
- Mappings:
Namespace Name Mixin selector official b
Lbmf;b:Lbmf;
intermediary field_6183
Lnet/minecraft/class_1306;field_6183:Lnet/minecraft/class_1306;
named RIGHT
Lnet/minecraft/util/Arm;RIGHT:Lnet/minecraft/util/Arm;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official c
Lbmf;c:Lcom/mojang/serialization/Codec;
intermediary field_45121
Lnet/minecraft/class_1306;field_45121:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/util/Arm;CODEC:Lcom/mojang/serialization/Codec;
-
BY_ID
- Mappings:
Namespace Name Mixin selector official d
Lbmf;d:Ljava/util/function/IntFunction;
intermediary field_46166
Lnet/minecraft/class_1306;field_46166:Ljava/util/function/IntFunction;
named BY_ID
Lnet/minecraft/util/Arm;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official e
Lbmf;e:I
intermediary field_38385
Lnet/minecraft/class_1306;field_38385:I
named id
Lnet/minecraft/util/Arm;id:I
-
name
- Mappings:
Namespace Name Mixin selector official f
Lbmf;f:Ljava/lang/String;
intermediary field_6181
Lnet/minecraft/class_1306;field_6181:Ljava/lang/String;
named name
Lnet/minecraft/util/Arm;name:Ljava/lang/String;
-
translationKey
- Mappings:
Namespace Name Mixin selector official g
Lbmf;g:Ljava/lang/String;
intermediary field_45122
Lnet/minecraft/class_1306;field_45122:Ljava/lang/String;
named translationKey
Lnet/minecraft/util/Arm;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
Arm
- Mappings:
Namespace Name Mixin selector official <init>
Lbmf;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_1306;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)V
named <init>
Lnet/minecraft/util/Arm;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/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
-
getOpposite
Returns the arm on the opposite side.- Returns:
- the arm on the opposite side
- Mappings:
Namespace Name Mixin selector official e
Lbmf;e()Lbmf;
intermediary method_5928
Lnet/minecraft/class_1306;method_5928()Lnet/minecraft/class_1306;
named getOpposite
Lnet/minecraft/util/Arm;getOpposite()Lnet/minecraft/util/Arm;
-
getId
public int getId()- Specified by:
getId
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector official a
Lauq;a()I
intermediary method_7362
Lnet/minecraft/class_7291;method_7362()I
named getId
Lnet/minecraft/util/TranslatableOption;getId()I
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector official b
Lauq;b()Ljava/lang/String;
intermediary method_7359
Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;
named getTranslationKey
Lnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official c
Lavk;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-