类 HoverEvent


  • public class HoverEvent
    extends Object
    Mappings:
    Namespace Name
    official or
    intermediary net/minecraft/class_2568
    named net/minecraft/text/HoverEvent
    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official a Lor;a:Lorg/apache/logging/log4j/Logger;
        intermediary field_24341 Lnet/minecraft/class_2568;field_24341:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/text/HoverEvent;LOGGER:Lorg/apache/logging/log4j/Logger;
      • action

        private final HoverEvent.Action<?> action
        Mappings:
        Namespace Name Mixin selector
        official b Lor;b:Lor$a;
        intermediary field_11756 Lnet/minecraft/class_2568;field_11756:Lnet/minecraft/class_2568$class_5247;
        named action Lnet/minecraft/text/HoverEvent;action:Lnet/minecraft/text/HoverEvent$Action;
      • contents

        private final Object contents
        Mappings:
        Namespace Name Mixin selector
        official c Lor;c:Ljava/lang/Object;
        intermediary field_11755 Lnet/minecraft/class_2568;field_11755:Ljava/lang/Object;
        named contents Lnet/minecraft/text/HoverEvent;contents:Ljava/lang/Object;
    • 构造器详细资料

      • HoverEvent

        public HoverEvent​(HoverEvent.Action<T> action,
                          T contents)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lor;<init>(Lor$a;Ljava/lang/Object;)V
        intermediary <init> Lnet/minecraft/class_2568;<init>(Lnet/minecraft/class_2568$class_5247;Ljava/lang/Object;)V
        named <init> Lnet/minecraft/text/HoverEvent;<init>(Lnet/minecraft/text/HoverEvent$Action;Ljava/lang/Object;)V
    • 方法详细资料

      • getAction

        public HoverEvent.Action<?> getAction()
        Mappings:
        Namespace Name Mixin selector
        official a Lor;a()Lor$a;
        intermediary method_10892 Lnet/minecraft/class_2568;method_10892()Lnet/minecraft/class_2568$class_5247;
        named getAction Lnet/minecraft/text/HoverEvent;getAction()Lnet/minecraft/text/HoverEvent$Action;
      • getValue

        @Nullable
        public <T> T getValue​(HoverEvent.Action<T> action)
        Mappings:
        Namespace Name Mixin selector
        official a Lor;a(Lor$a;)Ljava/lang/Object;
        intermediary method_10891 Lnet/minecraft/class_2568;method_10891(Lnet/minecraft/class_2568$class_5247;)Ljava/lang/Object;
        named getValue Lnet/minecraft/text/HoverEvent;getValue(Lnet/minecraft/text/HoverEvent$Action;)Ljava/lang/Object;
      • equals

        public boolean equals​(Object obj)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Lor;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_2568;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/text/HoverEvent;equals(Ljava/lang/Object;)Z
      • toString

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

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lor;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2568;hashCode()I
        named hashCode Lnet/minecraft/text/HoverEvent;hashCode()I
      • fromJson

        @Nullable
        public static @Nullable HoverEvent fromJson​(JsonObject json)
        Mappings:
        Namespace Name Mixin selector
        official a Lor;a(Lcom/google/gson/JsonObject;)Lor;
        intermediary method_27664 Lnet/minecraft/class_2568;method_27664(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2568;
        named fromJson Lnet/minecraft/text/HoverEvent;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/HoverEvent;
      • toJson

        public JsonObject toJson()
        Mappings:
        Namespace Name Mixin selector
        official b Lor;b()Lcom/google/gson/JsonObject;
        intermediary method_27665 Lnet/minecraft/class_2568;method_27665()Lcom/google/gson/JsonObject;
        named toJson Lnet/minecraft/text/HoverEvent;toJson()Lcom/google/gson/JsonObject;