| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EntityRegainHealthEvent.RegainReason>
org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason
public static enum EntityRegainHealthEvent.RegainReason
An enum to specify the type of health regaining that is occurring
| Enum Constant Summary | |
|---|---|
| CUSTOMAny other reason not covered by the reasons above | |
| EATINGWhen a player regains health from eating consumables | |
| ENDER_CRYSTALWhen an ender dragon regains health from an ender crystal | |
| MAGICWhen a player is healed by a potion or spell | |
| MAGIC_REGENWhen a player is healed over time by a potion or spell | |
| REGENWhen a player regains health from regenerating due to Peaceful mode (difficulty=0) | |
| SATIATEDWhen a player regains health from regenerating due to their hunger being satisfied | |
| WITHERWhen an entity is damaged by the Wither potion effect | |
| WITHER_SPAWNWhen a wither is filling its health during spawning | |
| Method Summary | |
|---|---|
| static EntityRegainHealthEvent.RegainReason | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static EntityRegainHealthEvent.RegainReason[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final EntityRegainHealthEvent.RegainReason REGEN
public static final EntityRegainHealthEvent.RegainReason SATIATED
public static final EntityRegainHealthEvent.RegainReason EATING
public static final EntityRegainHealthEvent.RegainReason ENDER_CRYSTAL
public static final EntityRegainHealthEvent.RegainReason MAGIC
public static final EntityRegainHealthEvent.RegainReason MAGIC_REGEN
public static final EntityRegainHealthEvent.RegainReason WITHER_SPAWN
public static final EntityRegainHealthEvent.RegainReason WITHER
public static final EntityRegainHealthEvent.RegainReason CUSTOM
| Method Detail | 
|---|
public static EntityRegainHealthEvent.RegainReason[] values()
for (EntityRegainHealthEvent.RegainReason c : EntityRegainHealthEvent.RegainReason.values()) System.out.println(c);
public static EntityRegainHealthEvent.RegainReason valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||