Package net.minecraft.text
Class HoverEvent.Action<T>
java.lang.Object
net.minecraft.text.HoverEvent.Action<T>
- All Implemented Interfaces:
StringIdentifiable
- Enclosing class:
HoverEvent
- Mappings:
Namespace Name official vl$a
intermediary net/minecraft/class_2568$class_5247
named net/minecraft/text/HoverEvent$Action
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Field Summary
Modifier and TypeFieldDescription(package private) final com.mojang.serialization.Codec<HoverEvent.EventData<T>>
static final com.mojang.serialization.Codec<HoverEvent.Action<?>>
(package private) final com.mojang.serialization.Codec<HoverEvent.EventData<T>>
private final String
private final boolean
static final HoverEvent.Action<HoverEvent.EntityContent>
static final HoverEvent.Action<HoverEvent.ItemStackContent>
static final HoverEvent.Action<Text>
static final com.mojang.serialization.Codec<HoverEvent.Action<?>>
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.(package private) T
boolean
toString()
private static com.mojang.serialization.DataResult<HoverEvent.Action<?>>
validate
(@Nullable HoverEvent.Action<?> action)
-
Field Details
-
SHOW_TEXT
- Mappings:
Namespace Name Mixin selector official a
Lvl$a;a:Lvl$a;
intermediary field_24342
Lnet/minecraft/class_2568$class_5247;field_24342:Lnet/minecraft/class_2568$class_5247;
named SHOW_TEXT
Lnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ITEM
- Mappings:
Namespace Name Mixin selector official b
Lvl$a;b:Lvl$a;
intermediary field_24343
Lnet/minecraft/class_2568$class_5247;field_24343:Lnet/minecraft/class_2568$class_5247;
named SHOW_ITEM
Lnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ENTITY
- Mappings:
Namespace Name Mixin selector official c
Lvl$a;c:Lvl$a;
intermediary field_24344
Lnet/minecraft/class_2568$class_5247;field_24344:Lnet/minecraft/class_2568$class_5247;
named SHOW_ENTITY
Lnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;
-
UNVALIDATED_CODEC
- Mappings:
Namespace Name Mixin selector official d
Lvl$a;d:Lcom/mojang/serialization/Codec;
intermediary field_46603
Lnet/minecraft/class_2568$class_5247;field_46603:Lcom/mojang/serialization/Codec;
named UNVALIDATED_CODEC
Lnet/minecraft/text/HoverEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official e
Lvl$a;e:Lcom/mojang/serialization/Codec;
intermediary field_46604
Lnet/minecraft/class_2568$class_5247;field_46604:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/text/HoverEvent$Action;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official f
Lvl$a;f:Ljava/lang/String;
intermediary field_24346
Lnet/minecraft/class_2568$class_5247;field_24346:Ljava/lang/String;
named name
Lnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;
-
parsable
private final boolean parsable- Mappings:
Namespace Name Mixin selector official g
Lvl$a;g:Z
intermediary field_24347
Lnet/minecraft/class_2568$class_5247;field_24347:Z
named parsable
Lnet/minecraft/text/HoverEvent$Action;parsable:Z
-
codec
- Mappings:
Namespace Name Mixin selector official h
Lvl$a;h:Lcom/mojang/serialization/Codec;
intermediary field_46605
Lnet/minecraft/class_2568$class_5247;field_46605:Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/text/HoverEvent$Action;codec:Lcom/mojang/serialization/Codec;
-
legacyCodec
- Mappings:
Namespace Name Mixin selector official i
Lvl$a;i:Lcom/mojang/serialization/Codec;
intermediary field_46606
Lnet/minecraft/class_2568$class_5247;field_46606:Lcom/mojang/serialization/Codec;
named legacyCodec
Lnet/minecraft/text/HoverEvent$Action;legacyCodec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Action
public Action(String name, boolean parsable, com.mojang.serialization.Codec<T> contentCodec, Function<Text, com.mojang.serialization.DataResult<T>> legacySerializer) - Mappings:
Namespace Name Mixin selector official <init>
Lvl$a;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
-
-
Method Details
-
isParsable
public boolean isParsable()- Mappings:
Namespace Name Mixin selector official a
Lvl$a;a()Z
intermediary method_27667
Lnet/minecraft/class_2568$class_5247;method_27667()Z
named isParsable
Lnet/minecraft/text/HoverEvent$Action;isParsable()Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official c
Lavk;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
cast
- Mappings:
Namespace Name Mixin selector official a
Lvl$a;a(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_27676
Lnet/minecraft/class_2568$class_5247;method_27676(Ljava/lang/Object;)Ljava/lang/Object;
named cast
Lnet/minecraft/text/HoverEvent$Action;cast(Ljava/lang/Object;)Ljava/lang/Object;
-
toString
-
validate
private static com.mojang.serialization.DataResult<HoverEvent.Action<?>> validate(@Nullable @Nullable HoverEvent.Action<?> action) - Mappings:
Namespace Name Mixin selector official a
Lvl$a;a(Lvl$a;)Lcom/mojang/serialization/DataResult;
intermediary method_54186
Lnet/minecraft/class_2568$class_5247;method_54186(Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/DataResult;
named validate
Lnet/minecraft/text/HoverEvent$Action;validate(Lnet/minecraft/text/HoverEvent$Action;)Lcom/mojang/serialization/DataResult;
-