public final class EntityRegainHealthEvent extends EntityEvent implements Cancellable
| Modifier and Type | Field and Description |
|---|---|
static int |
CAUSE_CUSTOM |
static int |
CAUSE_EATING |
static int |
CAUSE_MAGIC |
static int |
CAUSE_REGEN |
entity| Constructor and Description |
|---|
EntityRegainHealthEvent(Entity entity,
float amount,
int regainReason) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAmount() |
int |
getRegainReason() |
void |
setAmount(float amount) |
getEntityisCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic static final int CAUSE_REGEN
public static final int CAUSE_EATING
public static final int CAUSE_MAGIC
public static final int CAUSE_CUSTOM
public EntityRegainHealthEvent(Entity entity, float amount, int regainReason)
Copyright © 2021. All rights reserved.