public abstract class HoverEvent
extends java.lang.Object
TextHoverEvent implementation.| Modifier and Type | Field and Description |
|---|---|
protected HoverEventAction |
action |
| Constructor and Description |
|---|
HoverEvent(HoverEventAction action) |
| Modifier and Type | Method and Description |
|---|---|
static AchievementHoverEvent |
achievement(java.lang.String statistic) |
static EntityHoverEvent |
entity(com.viaversion.viaversion.libs.mcstructs.core.Identifier entityType,
java.util.UUID uuid,
TextComponent name) |
abstract boolean |
equals(java.lang.Object o) |
HoverEventAction |
getAction() |
abstract int |
hashCode() |
static ItemHoverEvent |
item(com.viaversion.viaversion.libs.mcstructs.core.Identifier item,
int count,
com.viaversion.nbt.tag.CompoundTag nbt) |
static TextHoverEvent |
text(TextComponent text) |
abstract java.lang.String |
toString() |
protected HoverEventAction action
public HoverEvent(HoverEventAction action)
public static TextHoverEvent text(TextComponent text)
public static AchievementHoverEvent achievement(java.lang.String statistic)
public static ItemHoverEvent item(com.viaversion.viaversion.libs.mcstructs.core.Identifier item, int count, @Nullable com.viaversion.nbt.tag.CompoundTag nbt)
public static EntityHoverEvent entity(com.viaversion.viaversion.libs.mcstructs.core.Identifier entityType, java.util.UUID uuid, @Nullable TextComponent name)
public HoverEventAction getAction()
public 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