Class HoverEvent

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

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

    • CODEC

      public static final com.mojang.serialization.Codec<HoverEvent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/HoverEvent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46601 Lnet/minecraft/class_2568;field_46601:Lcom/mojang/serialization/Codec;
      official a Lxv;a:Lcom/mojang/serialization/Codec;
    • data

      private final HoverEvent.EventData<?> data
      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/text/HoverEvent;data:Lnet/minecraft/text/HoverEvent$EventData;
      intermediary field_46602 Lnet/minecraft/class_2568;field_46602:Lnet/minecraft/class_2568$class_8826;
      official b Lxv;b:Lxv$e;
  • Constructor Details

    • HoverEvent

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

      private HoverEvent(HoverEvent.EventData<?> data)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/HoverEvent;<init>(Lnet/minecraft/text/HoverEvent$EventData;)V
      intermediary <init> Lnet/minecraft/class_2568;<init>(Lnet/minecraft/class_2568$class_8826;)V
      official <init> Lxv;<init>(Lxv$e;)V
  • Method Details

    • getAction

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/text/HoverEvent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2568;equals(Ljava/lang/Object;)Z
      official equals Lxv;equals(Ljava/lang/Object;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object