Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason Enum Reference

Public Attributes

 REGEN
 
 SATIATED
 
 EATING
 
 ENDER_CRYSTAL
 
 MAGIC
 
 MAGIC_REGEN
 
 WITHER_SPAWN
 
 WITHER
 
 CUSTOM
 

Detailed Description

An enum to specify the type of health regaining that is occurring

Definition at line 96 of file EntityRegainHealthEvent.java.

Member Data Documentation

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.CUSTOM

Any other reason not covered by the reasons above

Definition at line 135 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.EATING

When a player regains health from eating consumables

Definition at line 111 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.ENDER_CRYSTAL

When an ender dragon regains health from an ender crystal

Definition at line 115 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC

When a player is healed by a potion or spell

Definition at line 119 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN

When a player is healed over time by a potion or spell

Definition at line 123 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.REGEN

When a player regains health from regenerating due to Peaceful mode (difficulty=0)

Definition at line 102 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.SATIATED

When a player regains health from regenerating due to their hunger being satisfied

Definition at line 107 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.WITHER

When an entity is damaged by the Wither potion effect

Definition at line 131 of file EntityRegainHealthEvent.java.

org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.WITHER_SPAWN

When a wither is filling its health during spawning

Definition at line 127 of file EntityRegainHealthEvent.java.


The documentation for this enum was generated from the following file: