Package net.minecraft.text
Enum HoverEvent.Action
- All Implemented Interfaces:
Serializable,Comparable<HoverEvent.Action>,java.lang.constant.Constable
- Enclosing class:
- HoverEvent
public static enum HoverEvent.Action extends Enum<HoverEvent.Action>
- Mappings:
Namespace Name official ew$aintermediary net/minecraft/class_1447$class_1448named net/minecraft/text/HoverEvent$Action
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description SHOW_ACHIEVEMENTSHOW_ENTITYSHOW_ITEMSHOW_TEXT -
Field Summary
Fields Modifier and Type Field Description private static Map<String,HoverEvent.Action>ACTIONSprivate Stringnameprivate booleanuserDefinable -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static HoverEvent.ActionbyName(String name)StringgetName()booleanisUserDefinable()static HoverEvent.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static HoverEvent.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHOW_TEXT
- Mappings:
Namespace Name Mixin selector official aLew$a;a:Lew$a;intermediary field_6012Lnet/minecraft/class_1447$class_1448;field_6012:Lnet/minecraft/class_1447$class_1448;named SHOW_TEXTLnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ACHIEVEMENT
- Mappings:
Namespace Name Mixin selector official bLew$a;b:Lew$a;intermediary field_6013Lnet/minecraft/class_1447$class_1448;field_6013:Lnet/minecraft/class_1447$class_1448;named SHOW_ACHIEVEMENTLnet/minecraft/text/HoverEvent$Action;SHOW_ACHIEVEMENT:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ITEM
- Mappings:
Namespace Name Mixin selector official cLew$a;c:Lew$a;intermediary field_6014Lnet/minecraft/class_1447$class_1448;field_6014:Lnet/minecraft/class_1447$class_1448;named SHOW_ITEMLnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ENTITY
- Mappings:
Namespace Name Mixin selector official dLew$a;d:Lew$a;intermediary field_6015Lnet/minecraft/class_1447$class_1448;field_6015:Lnet/minecraft/class_1447$class_1448;named SHOW_ENTITYLnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;
-
-
Field Details
-
ACTIONS
- Mappings:
Namespace Name Mixin selector official eLew$a;e:Ljava/util/Map;intermediary field_6016Lnet/minecraft/class_1447$class_1448;field_6016:Ljava/util/Map;named ACTIONSLnet/minecraft/text/HoverEvent$Action;ACTIONS:Ljava/util/Map;
-
userDefinable
private final boolean userDefinable- Mappings:
Namespace Name Mixin selector official fLew$a;f:Zintermediary field_6017Lnet/minecraft/class_1447$class_1448;field_6017:Znamed userDefinableLnet/minecraft/text/HoverEvent$Action;userDefinable:Z
-
name
- Mappings:
Namespace Name Mixin selector official gLew$a;g:Ljava/lang/String;intermediary field_6018Lnet/minecraft/class_1447$class_1448;field_6018:Ljava/lang/String;named nameLnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;
-
-
Constructor Details
-
Action
- Mappings:
Namespace Name Mixin selector official <init>Lew$a;<init>(Ljava/lang/String;ILjava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_1447$class_1448;<init>(Ljava/lang/String;ILjava/lang/String;Z)Vnamed <init>Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;Z)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
-
isUserDefinable
public boolean isUserDefinable()- Mappings:
Namespace Name Mixin selector official aLew$a;a()Zintermediary method_5175Lnet/minecraft/class_1447$class_1448;method_5175()Znamed isUserDefinableLnet/minecraft/text/HoverEvent$Action;isUserDefinable()Z
-
getName
- Mappings:
Namespace Name Mixin selector official bLew$a;b()Ljava/lang/String;intermediary method_5177Lnet/minecraft/class_1447$class_1448;method_5177()Ljava/lang/String;named getNameLnet/minecraft/text/HoverEvent$Action;getName()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official aLew$a;a(Ljava/lang/String;)Lew$a;intermediary method_5176Lnet/minecraft/class_1447$class_1448;method_5176(Ljava/lang/String;)Lnet/minecraft/class_1447$class_1448;named byNameLnet/minecraft/text/HoverEvent$Action;byName(Ljava/lang/String;)Lnet/minecraft/text/HoverEvent$Action;
-