public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
修飾子とタイプ | クラスと説明 |
---|---|
static class |
EntityRegainHealthEvent.RegainReason
An enum to specify the type of health regaining that is occurring
|
Event.Result
entity
コンストラクタと説明 |
---|
EntityRegainHealthEvent(Entity entity,
double amount,
EntityRegainHealthEvent.RegainReason regainReason) |
EntityRegainHealthEvent(Entity entity,
int amount,
EntityRegainHealthEvent.RegainReason regainReason)
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
_INVALID_getAmount()
非推奨です。
|
void |
_INVALID_setAmount(int amount)
非推奨です。
|
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.
|
getEntity, getEntityType
getEventName, isAsynchronous
@Deprecated public EntityRegainHealthEvent(Entity entity, int amount, EntityRegainHealthEvent.RegainReason regainReason)
public EntityRegainHealthEvent(Entity entity, double amount, EntityRegainHealthEvent.RegainReason regainReason)
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)
amount
- the amount that will be regainedpublic boolean isCancelled()
Cancellable
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic EntityRegainHealthEvent.RegainReason getRegainReason()
public HandlerList getHandlers()
getHandlers
クラス内 Event
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.