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 biqintermediary net/minecraft/class_1306named 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.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<Arm>private final intprivate final Stringprivate final StringFields 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.intgetId()Returns the arm on the opposite side.static ArmReturns 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, valueOfMethods inherited from interface net.minecraft.util.TranslatableOption
getText
-
Enum Constant Details
-
LEFT
- Mappings:
Namespace Name Mixin selector official aLbiq;a:Lbiq;intermediary field_6182Lnet/minecraft/class_1306;field_6182:Lnet/minecraft/class_1306;named LEFTLnet/minecraft/util/Arm;LEFT:Lnet/minecraft/util/Arm;
-
RIGHT
- Mappings:
Namespace Name Mixin selector official bLbiq;b:Lbiq;intermediary field_6183Lnet/minecraft/class_1306;field_6183:Lnet/minecraft/class_1306;named RIGHTLnet/minecraft/util/Arm;RIGHT:Lnet/minecraft/util/Arm;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLbiq;c:Lcom/mojang/serialization/Codec;intermediary field_45121Lnet/minecraft/class_1306;field_45121:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/util/Arm;CODEC:Lcom/mojang/serialization/Codec;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official dLbiq;d:Iintermediary field_38385Lnet/minecraft/class_1306;field_38385:Inamed idLnet/minecraft/util/Arm;id:I
-
name
- Mappings:
Namespace Name Mixin selector official eLbiq;e:Ljava/lang/String;intermediary field_6181Lnet/minecraft/class_1306;field_6181:Ljava/lang/String;named nameLnet/minecraft/util/Arm;name:Ljava/lang/String;
-
translationKey
- Mappings:
Namespace Name Mixin selector official fLbiq;f:Ljava/lang/String;intermediary field_45122Lnet/minecraft/class_1306;field_45122:Ljava/lang/String;named translationKeyLnet/minecraft/util/Arm;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
Arm
- Mappings:
Namespace Name Mixin selector official <init>Lbiq;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1306;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)Vnamed <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 eLbiq;e()Lbiq;intermediary method_5928Lnet/minecraft/class_1306;method_5928()Lnet/minecraft/class_1306;named getOppositeLnet/minecraft/util/Arm;getOpposite()Lnet/minecraft/util/Arm;
-
getId
public int getId()- Specified by:
getIdin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector official aLarq;a()Iintermediary method_7362Lnet/minecraft/class_7291;method_7362()Inamed getIdLnet/minecraft/util/TranslatableOption;getId()I
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector official bLarq;b()Ljava/lang/String;intermediary method_7359Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;named getTranslationKeyLnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
-
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 cLasf;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-