public class EntityRegainHealthEvent extends Object implements EntityEvent, Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityRegainHealthEvent.Cause |
| Constructor and Description |
|---|
EntityRegainHealthEvent(Entity entity,
float amount,
EntityRegainHealthEvent.Cause cause) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAmount() |
Entity |
getEntity() |
EntityRegainHealthEvent.Cause |
getRegainCause() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setAmount(float amount) |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic EntityRegainHealthEvent(Entity entity, float amount, EntityRegainHealthEvent.Cause cause)
public float getAmount()
public void setAmount(float amount)
public EntityRegainHealthEvent.Cause getRegainCause()
public Entity getEntity()
getEntity in interface EntityEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.