Enum Class AttackIndicator

java.lang.Object
java.lang.Enum<AttackIndicator>
net.minecraft.client.option.AttackIndicator
All Implemented Interfaces:
Serializable, Comparable<AttackIndicator>, Constable, TranslatableOption

@Environment(CLIENT) public enum AttackIndicator extends Enum<AttackIndicator> implements TranslatableOption
Mappings:
Namespace Name
named net/minecraft/client/option/AttackIndicator
intermediary net/minecraft/class_4061
official fer
  • Enum Constant Details

    • OFF

      public static final AttackIndicator OFF
      Mappings:
      Namespace Name Mixin selector
      named OFF Lnet/minecraft/client/option/AttackIndicator;OFF:Lnet/minecraft/client/option/AttackIndicator;
      intermediary field_18151 Lnet/minecraft/class_4061;field_18151:Lnet/minecraft/class_4061;
      official a Lfer;a:Lfer;
    • CROSSHAIR

      public static final AttackIndicator CROSSHAIR
      Mappings:
      Namespace Name Mixin selector
      named CROSSHAIR Lnet/minecraft/client/option/AttackIndicator;CROSSHAIR:Lnet/minecraft/client/option/AttackIndicator;
      intermediary field_18152 Lnet/minecraft/class_4061;field_18152:Lnet/minecraft/class_4061;
      official b Lfer;b:Lfer;
    • HOTBAR

      public static final AttackIndicator HOTBAR
      Mappings:
      Namespace Name Mixin selector
      named HOTBAR Lnet/minecraft/client/option/AttackIndicator;HOTBAR:Lnet/minecraft/client/option/AttackIndicator;
      intermediary field_18153 Lnet/minecraft/class_4061;field_18153:Lnet/minecraft/class_4061;
      official c Lfer;c:Lfer;
  • Field Details

    • BY_ID

      private static final IntFunction<AttackIndicator> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/client/option/AttackIndicator;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_18154 Lnet/minecraft/class_4061;field_18154:Ljava/util/function/IntFunction;
      official d Lfer;d:Ljava/util/function/IntFunction;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/option/AttackIndicator;id:I
      intermediary field_18155 Lnet/minecraft/class_4061;field_18155:I
      official e Lfer;e:I
    • translationKey

      private final String translationKey
      Mappings:
      Namespace Name Mixin selector
      named translationKey Lnet/minecraft/client/option/AttackIndicator;translationKey:Ljava/lang/String;
      intermediary field_18156 Lnet/minecraft/class_4061;field_18156:Ljava/lang/String;
      official f Lfer;f:Ljava/lang/String;
  • Constructor Details

    • AttackIndicator

      private AttackIndicator(int id, String translationKey)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/option/AttackIndicator;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4061;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lfer;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static AttackIndicator[] 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 AttackIndicator 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
    • getId

      public int getId()
      Specified by:
      getId in interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/util/TranslatableOption;getId()I
      intermediary method_7362 Lnet/minecraft/class_7291;method_7362()I
      official a Lazc;a()I
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface TranslatableOption
      Mappings:
      Namespace Name Mixin selector
      named getTranslationKey Lnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
      intermediary method_7359 Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;
      official b Lazc;b()Ljava/lang/String;
    • byId

      public static AttackIndicator byId(int id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/client/option/AttackIndicator;byId(I)Lnet/minecraft/client/option/AttackIndicator;
      intermediary method_18488 Lnet/minecraft/class_4061;method_18488(I)Lnet/minecraft/class_4061;
      official a Lfer;a(I)Lfer;