public static enum HoverEvent.Action extends java.lang.Enum<HoverEvent.Action>
Enum Constant and Description |
---|
SHOW_ACHIEVEMENT |
SHOW_ENTITY |
SHOW_ITEM |
SHOW_TEXT |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCanonicalName()
Gets the canonical name for this action (e.g., "show_achievement")
|
static HoverEvent.Action |
getValueByCanonicalName(java.lang.String canonicalNameIn)
Gets a value by its canonical name.
|
boolean |
shouldAllowInChat()
Indicates whether this event can be run from chat text.
|
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.
|
public static final HoverEvent.Action SHOW_TEXT
public static final HoverEvent.Action SHOW_ACHIEVEMENT
public static final HoverEvent.Action SHOW_ITEM
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 shouldAllowInChat()
public java.lang.String getCanonicalName()
public static HoverEvent.Action getValueByCanonicalName(java.lang.String canonicalNameIn)