Package org.bukkit.event.entity
Enum EntityRegainHealthEvent.RegainReason
java.lang.Object
java.lang.Enum<EntityRegainHealthEvent.RegainReason>
org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason
- All Implemented Interfaces:
- Serializable,- Comparable<EntityRegainHealthEvent.RegainReason>,- java.lang.constant.Constable
- Enclosing class:
- EntityRegainHealthEvent
public static enum EntityRegainHealthEvent.RegainReason
extends Enum<EntityRegainHealthEvent.RegainReason>
An enum to specify the type of health regaining that is occurring
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAny other reason not covered by the reasons aboveWhen a player regains health from eating consumablesWhen an ender dragon regains health from an ender crystalWhen a player is healed by a potion or spellWhen a player is healed over time by a potion or spellWhen a player regains health from regenerating due to Peaceful mode (difficulty=0)When a player regains health from regenerating due to their hunger being satisfiedWhen an entity is damaged by the Wither potion effectWhen a wither is filling its health during spawning
- 
Method SummaryModifier and TypeMethodDescriptionReturns 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.
- 
Enum Constant Details- 
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
- 
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
- 
WITHER_SPAWNWhen a wither is filling its health during spawning
- 
WITHERWhen an entity is damaged by the Wither potion effect
- 
CUSTOMAny other reason not covered by the reasons above
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-