public static enum HoverEvent.Action extends java.lang.Enum<HoverEvent.Action>
| Enum Constant and Description |
|---|
SHOW_ENTITY
Shows an entity when hovered over.
|
SHOW_ITEM
Shows an item instance when hovered over.
|
SHOW_TEXT
Shows a
Component when hovered over. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable()
Deprecated.
use
readable() |
boolean |
readable()
Tests if this action is readable.
|
@NonNull java.lang.String |
toString() |
static HoverEvent.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HoverEvent.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="show_text") public static final HoverEvent.Action SHOW_TEXT
Component when hovered over.@SerializedName(value="show_item") public static final HoverEvent.Action SHOW_ITEM
@SerializedName(value="show_entity") public static final HoverEvent.Action SHOW_ENTITY
public static HoverEvent.Action[] values()
for (HoverEvent.Action c : HoverEvent.Action.values()) System.out.println(c);
public static HoverEvent.Action valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean readable()
true if this action is readable, false if this
action is not readable@Deprecated public boolean isReadable()
readable()true if this action is readable, false if this
action is not readablepublic @NonNull java.lang.String toString()
toString in class java.lang.Enum<HoverEvent.Action>