Enum EntityRegainHealthEvent.RegainReason

java.lang.Object
java.lang.Enum<EntityRegainHealthEvent.RegainReason>
org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EntityRegainHealthEvent.RegainReason>, java.lang.constant.Constable
Enclosing class:
EntityRegainHealthEvent

public static enum EntityRegainHealthEvent.RegainReason
extends java.lang.Enum<EntityRegainHealthEvent.RegainReason>
An enum to specify the type of health regaining that is occurring
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    CUSTOM
    Any other reason not covered by the reasons above
    EATING
    When a player regains health from eating consumables
    ENDER_CRYSTAL
    When an ender dragon regains health from an ender crystal
    MAGIC
    When a player is healed by a potion or spell
    MAGIC_REGEN
    When a player is healed over time by a potion or spell
    REGEN
    When a player regains health from regenerating due to Peaceful mode (difficulty=0)
    SATIATED
    When a player regains health from regenerating due to their hunger being satisfied
    WITHER
    When an entity is damaged by the Wither potion effect
    WITHER_SPAWN
    When a wither is filling its health during spawning
  • Method Summary

    Modifier and Type Method Description
    static EntityRegainHealthEvent.RegainReason valueOf​(java.lang.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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait