类 HoverEvent.Action<T>

  • 封闭类:
    HoverEvent

    public static class HoverEvent.Action<T>
    extends Object
    Mappings:
    Namespace Name
    official or$a
    intermediary net/minecraft/class_2568$class_5247
    named net/minecraft/text/HoverEvent$Action
    • 字段详细资料

      • SHOW_TEXT

        public static final HoverEvent.Action<Text> SHOW_TEXT
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a:Lor$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

        public static final HoverEvent.Action<HoverEvent.ItemStackContent> SHOW_ITEM
        Mappings:
        Namespace Name Mixin selector
        official b Lor$a;b:Lor$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

        public static final HoverEvent.Action<HoverEvent.EntityContent> SHOW_ENTITY
        Mappings:
        Namespace Name Mixin selector
        official c Lor$a;c:Lor$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;
      • BY_NAME

        private static final Map<String,​HoverEvent.Action<?>> BY_NAME
        Mappings:
        Namespace Name Mixin selector
        official d Lor$a;d:Ljava/util/Map;
        intermediary field_24345 Lnet/minecraft/class_2568$class_5247;field_24345:Ljava/util/Map;
        named BY_NAME Lnet/minecraft/text/HoverEvent$Action;BY_NAME:Ljava/util/Map;
      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official e Lor$a;e: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 f Lor$a;f:Z
        intermediary field_24347 Lnet/minecraft/class_2568$class_5247;field_24347:Z
        named parsable Lnet/minecraft/text/HoverEvent$Action;parsable:Z
      • deserializer

        private final Function<JsonElement,​T> deserializer
        Mappings:
        Namespace Name Mixin selector
        official g Lor$a;g:Ljava/util/function/Function;
        intermediary field_24348 Lnet/minecraft/class_2568$class_5247;field_24348:Ljava/util/function/Function;
        named deserializer Lnet/minecraft/text/HoverEvent$Action;deserializer:Ljava/util/function/Function;
      • serializer

        private final Function<T,​JsonElement> serializer
        Mappings:
        Namespace Name Mixin selector
        official h Lor$a;h:Ljava/util/function/Function;
        intermediary field_24349 Lnet/minecraft/class_2568$class_5247;field_24349:Ljava/util/function/Function;
        named serializer Lnet/minecraft/text/HoverEvent$Action;serializer:Ljava/util/function/Function;
      • legacyDeserializer

        private final Function<Text,​T> legacyDeserializer
        Mappings:
        Namespace Name Mixin selector
        official i Lor$a;i:Ljava/util/function/Function;
        intermediary field_24350 Lnet/minecraft/class_2568$class_5247;field_24350:Ljava/util/function/Function;
        named legacyDeserializer Lnet/minecraft/text/HoverEvent$Action;legacyDeserializer:Ljava/util/function/Function;
    • 构造器详细资料

      • 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> Lor$a;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)V
        intermediary <init> Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)V
        named <init> Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ZLjava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)V
    • 方法详细资料

      • isParsable

        public boolean isParsable()
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a()Z
        intermediary method_27667 Lnet/minecraft/class_2568$class_5247;method_27667()Z
        named isParsable Lnet/minecraft/text/HoverEvent$Action;isParsable()Z
      • getName

        public String getName()
        Mappings:
        Namespace Name Mixin selector
        official b Lor$a;b()Ljava/lang/String;
        intermediary method_27674 Lnet/minecraft/class_2568$class_5247;method_27674()Ljava/lang/String;
        named getName Lnet/minecraft/text/HoverEvent$Action;getName()Ljava/lang/String;
      • byName

        @Nullable
        public static @Nullable HoverEvent.Action<?> byName​(String name)
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a(Ljava/lang/String;)Lor$a;
        intermediary method_27670 Lnet/minecraft/class_2568$class_5247;method_27670(Ljava/lang/String;)Lnet/minecraft/class_2568$class_5247;
        named byName Lnet/minecraft/text/HoverEvent$Action;byName(Ljava/lang/String;)Lnet/minecraft/text/HoverEvent$Action;
      • cast

        private T cast​(Object o)
        Mappings:
        Namespace Name Mixin selector
        official b Lor$a;b(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;
      • buildHoverEvent

        @Nullable
        public @Nullable HoverEvent buildHoverEvent​(JsonElement contents)
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a(Lcom/google/gson/JsonElement;)Lor;
        intermediary method_27668 Lnet/minecraft/class_2568$class_5247;method_27668(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2568;
        named buildHoverEvent Lnet/minecraft/text/HoverEvent$Action;buildHoverEvent(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/HoverEvent;
      • buildHoverEvent

        @Nullable
        public @Nullable HoverEvent buildHoverEvent​(Text value)
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a(Lon;)Lor;
        intermediary method_27671 Lnet/minecraft/class_2568$class_5247;method_27671(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568;
        named buildHoverEvent Lnet/minecraft/text/HoverEvent$Action;buildHoverEvent(Lnet/minecraft/text/Text;)Lnet/minecraft/text/HoverEvent;
      • contentsToJson

        public JsonElement contentsToJson​(Object contents)
        Mappings:
        Namespace Name Mixin selector
        official a Lor$a;a(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
        intermediary method_27669 Lnet/minecraft/class_2568$class_5247;method_27669(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
        named contentsToJson Lnet/minecraft/text/HoverEvent$Action;contentsToJson(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lor$a;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_2568$class_5247;toString()Ljava/lang/String;
        named toString Lnet/minecraft/text/HoverEvent$Action;toString()Ljava/lang/String;