Package net.minecraft.text
Enum Class HoverEvent.Action
- All Implemented Interfaces:
Serializable,Comparable<HoverEvent.Action>,Constable,StringIdentifiable
- Enclosing interface:
HoverEvent
- Mappings:
Namespace Name named net/minecraft/text/HoverEvent$Actionintermediary net/minecraft/class_2568$class_5247official ye$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.mojang.serialization.MapCodec<? extends HoverEvent> static final com.mojang.serialization.Codec<HoverEvent.Action> private final Stringprivate final booleanstatic final com.mojang.serialization.Codec<HoverEvent.Action> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAction(String name, boolean parsable, com.mojang.serialization.MapCodec<? extends HoverEvent> codec) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.booleantoString()private static com.mojang.serialization.DataResult<HoverEvent.Action> validate(HoverEvent.Action action) static HoverEvent.ActionReturns the enum constant of this class with the specified name.static HoverEvent.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHOW_TEXT
- Mappings:
Namespace Name Mixin selector named SHOW_TEXTLnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;intermediary field_24342Lnet/minecraft/class_2568$class_5247;field_24342:Lnet/minecraft/class_2568$class_5247;official aLye$a;a:Lye$a;
-
SHOW_ITEM
- Mappings:
Namespace Name Mixin selector named SHOW_ITEMLnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;intermediary field_24343Lnet/minecraft/class_2568$class_5247;field_24343:Lnet/minecraft/class_2568$class_5247;official bLye$a;b:Lye$a;
-
SHOW_ENTITY
- Mappings:
Namespace Name Mixin selector named SHOW_ENTITYLnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;intermediary field_24344Lnet/minecraft/class_2568$class_5247;field_24344:Lnet/minecraft/class_2568$class_5247;official cLye$a;c:Lye$a;
-
-
Field Details
-
UNVALIDATED_CODEC
- Mappings:
Namespace Name Mixin selector named UNVALIDATED_CODECLnet/minecraft/text/HoverEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_46603Lnet/minecraft/class_2568$class_5247;field_46603:Lcom/mojang/serialization/Codec;official dLye$a;d:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/HoverEvent$Action;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46604Lnet/minecraft/class_2568$class_5247;field_46604:Lcom/mojang/serialization/Codec;official eLye$a;e:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;intermediary field_24346Lnet/minecraft/class_2568$class_5247;field_24346:Ljava/lang/String;official fLye$a;f:Ljava/lang/String;
-
parsable
private final boolean parsable- Mappings:
Namespace Name Mixin selector named parsableLnet/minecraft/text/HoverEvent$Action;parsable:Zintermediary field_24347Lnet/minecraft/class_2568$class_5247;field_24347:Zofficial gLye$a;g:Z
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/text/HoverEvent$Action;codec:Lcom/mojang/serialization/MapCodec;intermediary field_46605Lnet/minecraft/class_2568$class_5247;field_46605:Lcom/mojang/serialization/MapCodec;official hLye$a;h:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Action
private Action(String name, boolean parsable, com.mojang.serialization.MapCodec<? extends HoverEvent> codec) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)Vintermediary <init>Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)Vofficial <init>Lye$a;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)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
-
isParsable
public boolean isParsable()- Mappings:
Namespace Name Mixin selector named isParsableLnet/minecraft/text/HoverEvent$Action;isParsable()Zintermediary method_27667Lnet/minecraft/class_2568$class_5247;method_27667()Zofficial aLye$a;a()Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbgg;c()Ljava/lang/String;
-
toString
- Overrides:
toStringin classEnum<HoverEvent.Action>
-
validate
private static com.mojang.serialization.DataResult<HoverEvent.Action> validate(HoverEvent.Action action) - Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/text/HoverEvent$Action;validate(Lnet/minecraft/text/HoverEvent$Action;)Lcom/mojang/serialization/DataResult;intermediary method_54186Lnet/minecraft/class_2568$class_5247;method_54186(Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/DataResult;official aLye$a;a(Lye$a;)Lcom/mojang/serialization/DataResult;
-