Class HoverEvent

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lom;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 Lom;b:Lom$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 Lom;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> Lom;<init>(Lom$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 Lom;a()Lom$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 Lom;a(Lom$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)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lom;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
      Mappings:
      Namespace Name Mixin selector
      official toString Lom;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()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lom;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2568;hashCode()I
      named hashCode Lnet/minecraft/text/HoverEvent;hashCode()I
    • fromJson

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