Package net.minecraft.client.option
Enum AttackIndicator
- All Implemented Interfaces:
Serializable,Comparable<AttackIndicator>,java.lang.constant.Constable
@Environment(CLIENT) public enum AttackIndicator extends Enum<AttackIndicator>
- Mappings:
Namespace Name official dpuintermediary net/minecraft/class_4061named net/minecraft/client/option/AttackIndicator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private intidprivate StringtranslationKeyprivate static AttackIndicator[]VALUES -
Constructor Summary
Constructors Modifier Constructor Description privateAttackIndicator(int id, String translationKey) -
Method Summary
Modifier and Type Method Description static AttackIndicatorbyId(int id)intgetId()StringgetTranslationKey()static AttackIndicatorvalueOf(String name)Returns the enum constant of this type with the specified name.static AttackIndicator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OFF
- Mappings:
Namespace Name Mixin selector official aLdpu;a:Ldpu;intermediary field_18151Lnet/minecraft/class_4061;field_18151:Lnet/minecraft/class_4061;named OFFLnet/minecraft/client/option/AttackIndicator;OFF:Lnet/minecraft/client/option/AttackIndicator;
-
CROSSHAIR
- Mappings:
Namespace Name Mixin selector official bLdpu;b:Ldpu;intermediary field_18152Lnet/minecraft/class_4061;field_18152:Lnet/minecraft/class_4061;named CROSSHAIRLnet/minecraft/client/option/AttackIndicator;CROSSHAIR:Lnet/minecraft/client/option/AttackIndicator;
-
HOTBAR
- Mappings:
Namespace Name Mixin selector official cLdpu;c:Ldpu;intermediary field_18153Lnet/minecraft/class_4061;field_18153:Lnet/minecraft/class_4061;named HOTBARLnet/minecraft/client/option/AttackIndicator;HOTBAR:Lnet/minecraft/client/option/AttackIndicator;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official dLdpu;d:[Ldpu;intermediary field_18154Lnet/minecraft/class_4061;field_18154:[Lnet/minecraft/class_4061;named VALUESLnet/minecraft/client/option/AttackIndicator;VALUES:[Lnet/minecraft/client/option/AttackIndicator;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLdpu;e:Iintermediary field_18155Lnet/minecraft/class_4061;field_18155:Inamed idLnet/minecraft/client/option/AttackIndicator;id:I
-
translationKey
- Mappings:
Namespace Name Mixin selector official fLdpu;f:Ljava/lang/String;intermediary field_18156Lnet/minecraft/class_4061;field_18156:Ljava/lang/String;named translationKeyLnet/minecraft/client/option/AttackIndicator;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
AttackIndicator
- Mappings:
Namespace Name Mixin selector official <init>Ldpu;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4061;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/client/option/AttackIndicator;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLdpu;a()Iintermediary method_18487Lnet/minecraft/class_4061;method_18487()Inamed getIdLnet/minecraft/client/option/AttackIndicator;getId()I
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official bLdpu;b()Ljava/lang/String;intermediary method_18489Lnet/minecraft/class_4061;method_18489()Ljava/lang/String;named getTranslationKeyLnet/minecraft/client/option/AttackIndicator;getTranslationKey()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector official aLdpu;a(I)Ldpu;intermediary method_18488Lnet/minecraft/class_4061;method_18488(I)Lnet/minecraft/class_4061;named byIdLnet/minecraft/client/option/AttackIndicator;byId(I)Lnet/minecraft/client/option/AttackIndicator;
-