public static enum EntityRegainHealthEvent.Cause extends Enum<EntityRegainHealthEvent.Cause>
| Enum Constant and Description |
|---|
CUSTOM |
EATING |
MAGIC |
REGENERATION |
| Modifier and Type | Method and Description |
|---|---|
static EntityRegainHealthEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityRegainHealthEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityRegainHealthEvent.Cause REGENERATION
public static final EntityRegainHealthEvent.Cause EATING
public static final EntityRegainHealthEvent.Cause MAGIC
public static final EntityRegainHealthEvent.Cause CUSTOM
public static EntityRegainHealthEvent.Cause[] values()
for (EntityRegainHealthEvent.Cause c : EntityRegainHealthEvent.Cause.values()) System.out.println(c);
public static EntityRegainHealthEvent.Cause 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 nullCopyright © 2017–2019 NukkitX. All rights reserved.