public static enum HoverEvent.Action extends java.lang.Enum<HoverEvent.Action>
Enum Constant and Description |
---|
SHOW_ENTITY |
SHOW_ITEM |
SHOW_TEXT |
Modifier and Type | Field and Description |
---|---|
private boolean |
allowedInChat |
private java.lang.String |
canonicalName |
private static java.util.Map<java.lang.String,HoverEvent.Action> |
NAME_MAPPING |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCanonicalName() |
static HoverEvent.Action |
getValueByCanonicalName(java.lang.String canonicalNameIn) |
boolean |
shouldAllowInChat() |
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_ITEM
public static final HoverEvent.Action SHOW_ENTITY
private static final java.util.Map<java.lang.String,HoverEvent.Action> NAME_MAPPING
private final boolean allowedInChat
private final java.lang.String canonicalName
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)