Package net.minecraft.util
Enum Class Arm
- All Implemented Interfaces:
Serializable,Comparable<Arm>,Constable,StringIdentifiable
An enum representing an entity's arm.
- See Also:
- Mappings:
Namespace Name named net/minecraft/util/Armintermediary net/minecraft/class_1306official cha
-
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 TypeFieldDescriptionprivate static final IntFunction<Arm> static final com.mojang.serialization.Codec<Arm> static final PacketCodec<ByteBuf, Arm> private final Textprivate final intprivate final StringFields 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.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.
-
Enum Constant Details
-
LEFT
- Mappings:
Namespace Name Mixin selector named LEFTLnet/minecraft/util/Arm;LEFT:Lnet/minecraft/util/Arm;intermediary field_6182Lnet/minecraft/class_1306;field_6182:Lnet/minecraft/class_1306;official aLcha;a:Lcha;
-
RIGHT
- Mappings:
Namespace Name Mixin selector named RIGHTLnet/minecraft/util/Arm;RIGHT:Lnet/minecraft/util/Arm;intermediary field_6183Lnet/minecraft/class_1306;field_6183:Lnet/minecraft/class_1306;official bLcha;b:Lcha;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/Arm;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45121Lnet/minecraft/class_1306;field_45121:Lcom/mojang/serialization/Codec;official cLcha;c:Lcom/mojang/serialization/Codec;
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/util/Arm;BY_ID:Ljava/util/function/IntFunction;intermediary field_46166Lnet/minecraft/class_1306;field_46166:Ljava/util/function/IntFunction;official eLcha;e:Ljava/util/function/IntFunction;
-
field_64359
- Mappings:
Namespace Name Mixin selector named field_64359Lnet/minecraft/util/Arm;field_64359:Lnet/minecraft/network/codec/PacketCodec;intermediary field_64359Lnet/minecraft/class_1306;field_64359:Lnet/minecraft/class_9139;official dLcha;d:Laao;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/util/Arm;id:Iintermediary field_38385Lnet/minecraft/class_1306;field_38385:Iofficial fLcha;f:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/util/Arm;name:Ljava/lang/String;intermediary field_6181Lnet/minecraft/class_1306;field_6181:Ljava/lang/String;official gLcha;g:Ljava/lang/String;
-
field_64360
- Mappings:
Namespace Name Mixin selector named field_64360Lnet/minecraft/util/Arm;field_64360:Lnet/minecraft/text/Text;intermediary field_64360Lnet/minecraft/class_1306;field_64360:Lnet/minecraft/class_2561;official hLcha;h:Lyh;
-
-
Constructor Details
-
Arm
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/Arm;<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;)Vofficial <init>Lcha;<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 named getOppositeLnet/minecraft/util/Arm;getOpposite()Lnet/minecraft/util/Arm;intermediary method_5928Lnet/minecraft/class_1306;method_5928()Lnet/minecraft/class_1306;official aLcha;a()Lcha;
-
method_76442
- Mappings:
Namespace Name Mixin selector named method_76442Lnet/minecraft/util/Arm;method_76442()Lnet/minecraft/text/Text;intermediary method_76442Lnet/minecraft/class_1306;method_76442()Lnet/minecraft/class_2561;official bLcha;b()Lyh;
-
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 cLbhg;c()Ljava/lang/String;
-