Enum Class Arm

java.lang.Object
java.lang.Enum<Arm>
net.minecraft.util.Arm
All Implemented Interfaces:
Serializable, Comparable<Arm>, Constable, StringIdentifiable

public enum Arm extends Enum<Arm> implements StringIdentifiable
An enum representing an entity's arm.
See Also:
Mappings:
Namespace Name
named net/minecraft/util/Arm
intermediary net/minecraft/class_1306
official cha
  • Enum Constant Details

    • LEFT

      public static final Arm LEFT
      Mappings:
      Namespace Name Mixin selector
      named LEFT Lnet/minecraft/util/Arm;LEFT:Lnet/minecraft/util/Arm;
      intermediary field_6182 Lnet/minecraft/class_1306;field_6182:Lnet/minecraft/class_1306;
      official a Lcha;a:Lcha;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Arm> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/Arm;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45121 Lnet/minecraft/class_1306;field_45121:Lcom/mojang/serialization/Codec;
      official c Lcha;c:Lcom/mojang/serialization/Codec;
    • BY_ID

      private static final IntFunction<Arm> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/util/Arm;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_46166 Lnet/minecraft/class_1306;field_46166:Ljava/util/function/IntFunction;
      official e Lcha;e:Ljava/util/function/IntFunction;
    • field_64359

      public static final PacketCodec<ByteBuf,Arm> field_64359
      Mappings:
      Namespace Name Mixin selector
      named field_64359 Lnet/minecraft/util/Arm;field_64359:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_64359 Lnet/minecraft/class_1306;field_64359:Lnet/minecraft/class_9139;
      official d Lcha;d:Laao;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/util/Arm;id:I
      intermediary field_38385 Lnet/minecraft/class_1306;field_38385:I
      official f Lcha;f:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/util/Arm;name:Ljava/lang/String;
      intermediary field_6181 Lnet/minecraft/class_1306;field_6181:Ljava/lang/String;
      official g Lcha;g:Ljava/lang/String;
    • field_64360

      private final Text field_64360
      Mappings:
      Namespace Name Mixin selector
      named field_64360 Lnet/minecraft/util/Arm;field_64360:Lnet/minecraft/text/Text;
      intermediary field_64360 Lnet/minecraft/class_1306;field_64360:Lnet/minecraft/class_2561;
      official h Lcha;h:Lyh;
  • Constructor Details

    • Arm

      private Arm(int id, String name, String translationKey)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/Arm;<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
      official <init> Lcha;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)V
  • Method Details

    • values

      public static Arm[] 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

      public static Arm valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getOpposite

      public Arm getOpposite()
      Returns the arm on the opposite side.
      Returns:
      the arm on the opposite side
      Mappings:
      Namespace Name Mixin selector
      named getOpposite Lnet/minecraft/util/Arm;getOpposite()Lnet/minecraft/util/Arm;
      intermediary method_5928 Lnet/minecraft/class_1306;method_5928()Lnet/minecraft/class_1306;
      official a Lcha;a()Lcha;
    • method_76442

      public Text method_76442()
      Mappings:
      Namespace Name Mixin selector
      named method_76442 Lnet/minecraft/util/Arm;method_76442()Lnet/minecraft/text/Text;
      intermediary method_76442 Lnet/minecraft/class_1306;method_76442()Lnet/minecraft/class_2561;
      official b Lcha;b()Lyh;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbhg;c()Ljava/lang/String;