|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityRegainHealthEvent
public class EntityRegainHealthEvent
Stores data for health-regain events
| Nested Class Summary | |
|---|---|
static class |
EntityRegainHealthEvent.RegainReason
An enum to specify the type of health regaining that is occurring |
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.entity.EntityEvent |
|---|
entity |
| Constructor Summary | |
|---|---|
EntityRegainHealthEvent(Entity entity,
double amount,
EntityRegainHealthEvent.RegainReason regainReason)
|
|
EntityRegainHealthEvent(Entity entity,
int amount,
EntityRegainHealthEvent.RegainReason regainReason)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
_INVALID_getAmount()
Deprecated. |
void |
_INVALID_setAmount(int amount)
Deprecated. |
double |
getAmount()
Gets the amount of regained health |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
EntityRegainHealthEvent.RegainReason |
getRegainReason()
Gets the reason for why the entity is regaining health |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setAmount(double amount)
Sets the amount of regained health |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
| Methods inherited from class org.bukkit.event.entity.EntityEvent |
|---|
getEntity, getEntityType |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public EntityRegainHealthEvent(Entity entity,
int amount,
EntityRegainHealthEvent.RegainReason regainReason)
public EntityRegainHealthEvent(Entity entity,
double amount,
EntityRegainHealthEvent.RegainReason regainReason)
| Method Detail |
|---|
public double getAmount()
@Deprecated public int _INVALID_getAmount()
public void setAmount(double amount)
amount - the amount of health the entity will regain@Deprecated public void _INVALID_setAmount(int amount)
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic EntityRegainHealthEvent.RegainReason getRegainReason()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||