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 - named - net/minecraft/text/HoverEvent$Action- intermediary - net/minecraft/class_2568$class_5247- official - wv$a
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiableStringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) final com.mojang.serialization.MapCodec<HoverEvent.EventData<T>> static final com.mojang.serialization.Codec<HoverEvent.Action<?>> (package private) final com.mojang.serialization.MapCodec<HoverEvent.EventData<T>> private final Stringprivate final booleanstatic 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.StringIdentifiableCACHED_MAP_THRESHOLD
- 
Constructor SummaryConstructorsConstructorDescriptionAction(String name, boolean parsable, com.mojang.serialization.Codec<T> contentCodec, HoverEvent.LegacySerializer<T> legacySerializer) 
- 
Method SummaryModifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.(package private) TbooleantoString()private static com.mojang.serialization.DataResult<HoverEvent.Action<?>> validate(@Nullable HoverEvent.Action<?> action) 
- 
Field Details- 
SHOW_TEXT- Mappings:
- Namespace - Name - Mixin selector - named - SHOW_TEXT- Lnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;- intermediary - field_24342- Lnet/minecraft/class_2568$class_5247;field_24342:Lnet/minecraft/class_2568$class_5247;- official - a- Lwv$a;a:Lwv$a;
 
- 
SHOW_ITEM- Mappings:
- Namespace - Name - Mixin selector - named - SHOW_ITEM- Lnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;- intermediary - field_24343- Lnet/minecraft/class_2568$class_5247;field_24343:Lnet/minecraft/class_2568$class_5247;- official - b- Lwv$a;b:Lwv$a;
 
- 
SHOW_ENTITY- Mappings:
- Namespace - Name - Mixin selector - named - SHOW_ENTITY- Lnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;- intermediary - field_24344- Lnet/minecraft/class_2568$class_5247;field_24344:Lnet/minecraft/class_2568$class_5247;- official - c- Lwv$a;c:Lwv$a;
 
- 
UNVALIDATED_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - UNVALIDATED_CODEC- Lnet/minecraft/text/HoverEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_46603- Lnet/minecraft/class_2568$class_5247;field_46603:Lcom/mojang/serialization/Codec;- official - d- Lwv$a;d:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/text/HoverEvent$Action;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_46604- Lnet/minecraft/class_2568$class_5247;field_46604:Lcom/mojang/serialization/Codec;- official - e- Lwv$a;e:Lcom/mojang/serialization/Codec;
 
- 
name- Mappings:
- Namespace - Name - Mixin selector - named - name- Lnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;- intermediary - field_24346- Lnet/minecraft/class_2568$class_5247;field_24346:Ljava/lang/String;- official - f- Lwv$a;f:Ljava/lang/String;
 
- 
parsableprivate final boolean parsable- Mappings:
- Namespace - Name - Mixin selector - named - parsable- Lnet/minecraft/text/HoverEvent$Action;parsable:Z- intermediary - field_24347- Lnet/minecraft/class_2568$class_5247;field_24347:Z- official - g- Lwv$a;g:Z
 
- 
codec- Mappings:
- Namespace - Name - Mixin selector - named - codec- Lnet/minecraft/text/HoverEvent$Action;codec:Lcom/mojang/serialization/MapCodec;- intermediary - field_46605- Lnet/minecraft/class_2568$class_5247;field_46605:Lcom/mojang/serialization/MapCodec;- official - h- Lwv$a;h:Lcom/mojang/serialization/MapCodec;
 
- 
legacyCodec- Mappings:
- Namespace - Name - Mixin selector - named - legacyCodec- Lnet/minecraft/text/HoverEvent$Action;legacyCodec:Lcom/mojang/serialization/MapCodec;- intermediary - field_46606- Lnet/minecraft/class_2568$class_5247;field_46606:Lcom/mojang/serialization/MapCodec;- official - i- Lwv$a;i:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
Actionpublic Action(String name, boolean parsable, com.mojang.serialization.Codec<T> contentCodec, HoverEvent.LegacySerializer<T> legacySerializer) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Lnet/minecraft/text/HoverEvent$LegacySerializer;)V- intermediary - <init>- Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Lnet/minecraft/class_2568$class_9341;)V- official - <init>- Lwv$a;<init>(Ljava/lang/String;ZLcom/mojang/serialization/Codec;Lwv$d;)V
 
 
- 
- 
Method Details- 
isParsablepublic boolean isParsable()- Mappings:
- Namespace - Name - Mixin selector - named - isParsable- Lnet/minecraft/text/HoverEvent$Action;isParsable()Z- intermediary - method_27667- Lnet/minecraft/class_2568$class_5247;method_27667()Z- official - a- Lwv$a;a()Z
 
- 
asStringReturns the unique string representation of the enum, used for serialization.- Specified by:
- asStringin interface- StringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
- Namespace - Name - Mixin selector - named - asString- Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;- intermediary - method_15434- Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;- official - c- Lazv;c()Ljava/lang/String;
 
- 
cast- Mappings:
- Namespace - Name - Mixin selector - named - cast- Lnet/minecraft/text/HoverEvent$Action;cast(Ljava/lang/Object;)Ljava/lang/Object;- intermediary - method_27676- Lnet/minecraft/class_2568$class_5247;method_27676(Ljava/lang/Object;)Ljava/lang/Object;- official - a- Lwv$a;a(Ljava/lang/Object;)Ljava/lang/Object;
 
- 
toString
- 
validateprivate static com.mojang.serialization.DataResult<HoverEvent.Action<?>> validate(@Nullable @Nullable HoverEvent.Action<?> action) - Mappings:
- Namespace - Name - Mixin selector - named - validate- Lnet/minecraft/text/HoverEvent$Action;validate(Lnet/minecraft/text/HoverEvent$Action;)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;- official - a- Lwv$a;a(Lwv$a;)Lcom/mojang/serialization/DataResult;
 
 
-