public abstract class AHoverEvent
extends java.lang.Object
TextHoverEvent implementation.| Modifier and Type | Field and Description |
|---|---|
protected HoverEventAction |
action |
| Constructor and Description |
|---|
AHoverEvent(HoverEventAction action) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
equals(java.lang.Object o) |
HoverEventAction |
getAction() |
abstract int |
hashCode() |
abstract TextHoverEvent |
toLegacy(TextComponentSerializer textComponentSerializer,
net.lenni0451.mcstructs.snbt.SNbtSerializer<?> sNbtSerializer)
Converts this hover event to a legacy text hover event.
|
abstract java.lang.String |
toString() |
protected HoverEventAction action
public AHoverEvent(HoverEventAction action)
public HoverEventAction getAction()
public abstract TextHoverEvent toLegacy(TextComponentSerializer textComponentSerializer, net.lenni0451.mcstructs.snbt.SNbtSerializer<?> sNbtSerializer)
textComponentSerializer - The serializer to use for text componentssNbtSerializer - The serializer to use for nbt tagspublic abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract java.lang.String toString()
toString in class java.lang.Object