Enum Class Arm

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

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

    • LEFT

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

    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official c Lbft;c:I
      intermediary field_38385 Lnet/minecraft/class_1306;field_38385:I
      named id Lnet/minecraft/util/Arm;id:I
    • translationKey

      private final String translationKey
      Mappings:
      Namespace Name Mixin selector
      official d Lbft;d:Ljava/lang/String;
      intermediary field_6181 Lnet/minecraft/class_1306;field_6181:Ljava/lang/String;
      named translationKey Lnet/minecraft/util/Arm;translationKey:Ljava/lang/String;
  • Constructor Details

    • Arm

      private Arm(int id, String translationKey)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbft;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1306;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/util/Arm;<init>(Ljava/lang/String;IILjava/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
      official d Lbft;d()Lbft;
      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 interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      official a Lapc;a()I
      intermediary method_7362 Lnet/minecraft/class_7291;method_7362()I
      named getId Lnet/minecraft/util/TranslatableOption;getId()I
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      official b Lapc;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;