public enum HoverEventAction extends java.lang.Enum<HoverEventAction> implements net.lenni0451.mcstructs.converter.types.NamedType
| Enum Constant | Description |
|---|---|
SHOW_ACHIEVEMENT |
Removed in Minecraft 1.12.
|
SHOW_ENTITY |
Added in Minecraft 1.8.
|
SHOW_ITEM |
|
SHOW_TEXT |
| Modifier and Type | Method | Description |
|---|---|---|
static HoverEventAction |
byName(java.lang.String name) |
|
static HoverEventAction |
byName(java.lang.String name,
java.util.function.BiPredicate<java.lang.String,java.lang.String> predicate) |
|
static HoverEventAction |
byName(java.lang.String name,
boolean ignoreCase) |
|
java.lang.String |
getName() |
|
boolean |
isUserDefinable() |
|
static HoverEventAction |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HoverEventAction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HoverEventAction SHOW_TEXT
public static final HoverEventAction SHOW_ACHIEVEMENT
public static final HoverEventAction SHOW_ITEM
public static final HoverEventAction SHOW_ENTITY
public static HoverEventAction[] values()
for (HoverEventAction c : HoverEventAction.values()) System.out.println(c);
public static HoverEventAction 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 null@Nullable public static HoverEventAction byName(java.lang.String name)
@Nullable public static HoverEventAction byName(java.lang.String name, boolean ignoreCase)
@Nullable public static HoverEventAction byName(java.lang.String name, java.util.function.BiPredicate<java.lang.String,java.lang.String> predicate)
public java.lang.String getName()
getName in interface net.lenni0451.mcstructs.converter.types.NamedTypepublic boolean isUserDefinable()