public class EntityDamageEvent extends EntityEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityDamageEvent.DamageCause |
static class |
EntityDamageEvent.DamageModifier |
entity| Constructor and Description |
|---|
EntityDamageEvent(Entity entity,
EntityDamageEvent.DamageCause cause,
float damage) |
EntityDamageEvent(Entity entity,
EntityDamageEvent.DamageCause cause,
Map<EntityDamageEvent.DamageModifier,Float> modifiers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeReducedByArmor() |
int |
getAttackCooldown() |
EntityDamageEvent.DamageCause |
getCause() |
float |
getDamage() |
float |
getDamage(EntityDamageEvent.DamageModifier type) |
float |
getFinalDamage() |
static HandlerList |
getHandlers() |
float |
getOriginalDamage() |
float |
getOriginalDamage(EntityDamageEvent.DamageModifier type) |
boolean |
isApplicable(EntityDamageEvent.DamageModifier type) |
void |
setAttackCooldown(int attackCooldown) |
void |
setDamage(float damage) |
void |
setDamage(float damage,
EntityDamageEvent.DamageModifier type) |
getEntitygetEventName, isCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic EntityDamageEvent(Entity entity, EntityDamageEvent.DamageCause cause, float damage)
public EntityDamageEvent(Entity entity, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier,Float> modifiers)
public static HandlerList getHandlers()
public EntityDamageEvent.DamageCause getCause()
public float getOriginalDamage()
public float getOriginalDamage(EntityDamageEvent.DamageModifier type)
public float getDamage()
public float getDamage(EntityDamageEvent.DamageModifier type)
public void setDamage(float damage)
public void setDamage(float damage,
EntityDamageEvent.DamageModifier type)
public boolean isApplicable(EntityDamageEvent.DamageModifier type)
public float getFinalDamage()
public int getAttackCooldown()
public void setAttackCooldown(int attackCooldown)
public boolean canBeReducedByArmor()
Copyright © 2020. All rights reserved.