Package net.minecraft.text
Class HoverEvent.Action<T>
java.lang.Object
net.minecraft.text.HoverEvent.Action<T>
- Enclosing class:
- HoverEvent
- Mappings:
Namespace Name official ow$aintermediary net/minecraft/class_2568$class_5247named net/minecraft/text/HoverEvent$Action
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map<String,HoverEvent.Action<?>>private Function<JsonElement,T>private Stringprivate booleanprivate Function<T,JsonElement>static HoverEvent.Action<Text> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildHoverEvent(JsonElement contents)buildHoverEvent(Text value)static @Nullable HoverEvent.Action<?>(package private) TcontentsToJson(Object contents)getName()booleantoString()
-
Field Details
-
SHOW_TEXT
- Mappings:
Namespace Name Mixin selector official aLow$a;a:Low$a;intermediary field_24342Lnet/minecraft/class_2568$class_5247;field_24342:Lnet/minecraft/class_2568$class_5247;named SHOW_TEXTLnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ITEM
- Mappings:
Namespace Name Mixin selector official bLow$a;b:Low$a;intermediary field_24343Lnet/minecraft/class_2568$class_5247;field_24343:Lnet/minecraft/class_2568$class_5247;named SHOW_ITEMLnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;
-
SHOW_ENTITY
- Mappings:
Namespace Name Mixin selector official cLow$a;c:Low$a;intermediary field_24344Lnet/minecraft/class_2568$class_5247;field_24344:Lnet/minecraft/class_2568$class_5247;named SHOW_ENTITYLnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;
-
BY_NAME
- Mappings:
Namespace Name Mixin selector official dLow$a;d:Ljava/util/Map;intermediary field_24345Lnet/minecraft/class_2568$class_5247;field_24345:Ljava/util/Map;named BY_NAMELnet/minecraft/text/HoverEvent$Action;BY_NAME:Ljava/util/Map;
-
name
- Mappings:
Namespace Name Mixin selector official eLow$a;e:Ljava/lang/String;intermediary field_24346Lnet/minecraft/class_2568$class_5247;field_24346:Ljava/lang/String;named nameLnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;
-
parsable
private final boolean parsable- Mappings:
Namespace Name Mixin selector official fLow$a;f:Zintermediary field_24347Lnet/minecraft/class_2568$class_5247;field_24347:Znamed parsableLnet/minecraft/text/HoverEvent$Action;parsable:Z
-
deserializer
- Mappings:
Namespace Name Mixin selector official gLow$a;g:Ljava/util/function/Function;intermediary field_24348Lnet/minecraft/class_2568$class_5247;field_24348:Ljava/util/function/Function;named deserializerLnet/minecraft/text/HoverEvent$Action;deserializer:Ljava/util/function/Function;
-
serializer
- Mappings:
Namespace Name Mixin selector official hLow$a;h:Ljava/util/function/Function;intermediary field_24349Lnet/minecraft/class_2568$class_5247;field_24349:Ljava/util/function/Function;named serializerLnet/minecraft/text/HoverEvent$Action;serializer:Ljava/util/function/Function;
-
legacyDeserializer
- Mappings:
Namespace Name Mixin selector official iLow$a;i:Ljava/util/function/Function;intermediary field_24350Lnet/minecraft/class_2568$class_5247;field_24350:Ljava/util/function/Function;named legacyDeserializerLnet/minecraft/text/HoverEvent$Action;legacyDeserializer:Ljava/util/function/Function;
-
-
Constructor Details
-
Action
public Action(String name, boolean parsable, Function<JsonElement,T> deserializer, Function<T,JsonElement> serializer, Function<Text,T> legacyDeserializer)- Mappings:
Namespace Name Mixin selector official <init>Low$a;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Vnamed <init>Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)V
-
-
Method Details
-
isParsable
public boolean isParsable()- Mappings:
Namespace Name Mixin selector official aLow$a;a()Zintermediary method_27667Lnet/minecraft/class_2568$class_5247;method_27667()Znamed isParsableLnet/minecraft/text/HoverEvent$Action;isParsable()Z
-
getName
- Mappings:
Namespace Name Mixin selector official bLow$a;b()Ljava/lang/String;intermediary method_27674Lnet/minecraft/class_2568$class_5247;method_27674()Ljava/lang/String;named getNameLnet/minecraft/text/HoverEvent$Action;getName()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official aLow$a;a(Ljava/lang/String;)Low$a;intermediary method_27670Lnet/minecraft/class_2568$class_5247;method_27670(Ljava/lang/String;)Lnet/minecraft/class_2568$class_5247;named byNameLnet/minecraft/text/HoverEvent$Action;byName(Ljava/lang/String;)Lnet/minecraft/text/HoverEvent$Action;
-
cast
- Mappings:
Namespace Name Mixin selector official bLow$a;b(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_27676Lnet/minecraft/class_2568$class_5247;method_27676(Ljava/lang/Object;)Ljava/lang/Object;named castLnet/minecraft/text/HoverEvent$Action;cast(Ljava/lang/Object;)Ljava/lang/Object;
-
buildHoverEvent
- Mappings:
Namespace Name Mixin selector official aLow$a;a(Lcom/google/gson/JsonElement;)Low;intermediary method_27668Lnet/minecraft/class_2568$class_5247;method_27668(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2568;named buildHoverEventLnet/minecraft/text/HoverEvent$Action;buildHoverEvent(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/HoverEvent;
-
buildHoverEvent
- Mappings:
Namespace Name Mixin selector official aLow$a;a(Los;)Low;intermediary method_27671Lnet/minecraft/class_2568$class_5247;method_27671(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568;named buildHoverEventLnet/minecraft/text/HoverEvent$Action;buildHoverEvent(Lnet/minecraft/text/Text;)Lnet/minecraft/text/HoverEvent;
-
contentsToJson
- Mappings:
Namespace Name Mixin selector official aLow$a;a(Ljava/lang/Object;)Lcom/google/gson/JsonElement;intermediary method_27669Lnet/minecraft/class_2568$class_5247;method_27669(Ljava/lang/Object;)Lcom/google/gson/JsonElement;named contentsToJsonLnet/minecraft/text/HoverEvent$Action;contentsToJson(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
-
toString
-