public static enum HoverEvent.Action extends Enum<HoverEvent.Action>
Enum Constant and Description |
---|
SHOW_ENTITY |
SHOW_ITEM |
SHOW_TEXT |
Modifier and Type | Field and Description |
---|---|
private static Map<String,HoverEvent.Action> |
BY_NAME |
private String |
name |
private boolean |
userDefinable |
Modifier and Type | Method and Description |
---|---|
static HoverEvent.Action |
byName(String name) |
String |
getName() |
boolean |
isUserDefinable() |
static HoverEvent.Action |
valueOf(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 Map<String,HoverEvent.Action> BY_NAME
private final boolean userDefinable
private final String name
public static HoverEvent.Action[] values()
for (HoverEvent.Action c : HoverEvent.Action.values()) System.out.println(c);
public static HoverEvent.Action valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isUserDefinable()
public String getName()
public static HoverEvent.Action byName(String name)