Package net.minecraft.client.option
Enum Class 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/AttackIndicatorintermediary net/minecraft/class_4061official ffx
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<AttackIndicator> private final intprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttackIndicatorbyId(int id) intgetId()static AttackIndicatorReturns the enum constant of this class with the specified name.static AttackIndicator[]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
-
OFF
- Mappings:
Namespace Name Mixin selector named OFFLnet/minecraft/client/option/AttackIndicator;OFF:Lnet/minecraft/client/option/AttackIndicator;intermediary field_18151Lnet/minecraft/class_4061;field_18151:Lnet/minecraft/class_4061;official aLffx;a:Lffx;
-
CROSSHAIR
- Mappings:
Namespace Name Mixin selector named CROSSHAIRLnet/minecraft/client/option/AttackIndicator;CROSSHAIR:Lnet/minecraft/client/option/AttackIndicator;intermediary field_18152Lnet/minecraft/class_4061;field_18152:Lnet/minecraft/class_4061;official bLffx;b:Lffx;
-
HOTBAR
- Mappings:
Namespace Name Mixin selector named HOTBARLnet/minecraft/client/option/AttackIndicator;HOTBAR:Lnet/minecraft/client/option/AttackIndicator;intermediary field_18153Lnet/minecraft/class_4061;field_18153:Lnet/minecraft/class_4061;official cLffx;c:Lffx;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/client/option/AttackIndicator;BY_ID:Ljava/util/function/IntFunction;intermediary field_18154Lnet/minecraft/class_4061;field_18154:Ljava/util/function/IntFunction;official dLffx;d:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/option/AttackIndicator;id:Iintermediary field_18155Lnet/minecraft/class_4061;field_18155:Iofficial eLffx;e:I
-
translationKey
- Mappings:
Namespace Name Mixin selector named translationKeyLnet/minecraft/client/option/AttackIndicator;translationKey:Ljava/lang/String;intermediary field_18156Lnet/minecraft/class_4061;field_18156:Ljava/lang/String;official fLffx;f:Ljava/lang/String;
-
-
Constructor Details
-
AttackIndicator
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/option/AttackIndicator;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4061;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Lffx;<init>(Ljava/lang/String;IILjava/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
-
getId
public int getId()- Specified by:
getIdin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/util/TranslatableOption;getId()Iintermediary method_7362Lnet/minecraft/class_7291;method_7362()Iofficial aLayr;a()I
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceTranslatableOption- Mappings:
Namespace Name Mixin selector named getTranslationKeyLnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;intermediary method_7359Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;official bLayr;b()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector named byIdLnet/minecraft/client/option/AttackIndicator;byId(I)Lnet/minecraft/client/option/AttackIndicator;intermediary method_18488Lnet/minecraft/class_4061;method_18488(I)Lnet/minecraft/class_4061;official aLffx;a(I)Lffx;
-