Class HoverEvent

java.lang.Object
net.minecraft.text.HoverEvent

public class HoverEvent extends Object
Mappings:
Namespace Name
official tq
intermediary net/minecraft/class_2568
named net/minecraft/text/HoverEvent
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ltq;a:Lorg/slf4j/Logger;
      intermediary field_24341 Lnet/minecraft/class_2568;field_24341:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/text/HoverEvent;LOGGER:Lorg/slf4j/Logger;
    • action

      private final HoverEvent.Action<?> action
      Mappings:
      Namespace Name Mixin selector
      official b Ltq;b:Ltq$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 Ltq;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;
  • Constructor Details

    • HoverEvent

      public HoverEvent(HoverEvent.Action<T> action, T contents)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltq;<init>(Ltq$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
  • Method Details

    • getAction

      public HoverEvent.Action<?> getAction()
      Mappings:
      Namespace Name Mixin selector
      official a Ltq;a()Ltq$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 Ltq;a(Ltq$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 o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ltq;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()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • fromJson

      @Nullable public static @Nullable HoverEvent fromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Ltq;a(Lcom/google/gson/JsonObject;)Ltq;
      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 Ltq;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;