java.lang.Object
org.cloudburstmc.api.event.Event
org.cloudburstmc.api.event.entity.EntityEvent
org.cloudburstmc.api.event.entity.EntityDamageEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
EntityDamageByBlockEvent,EntityDamageByEntityEvent
author: MagicDroidX
Nukkit Project
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.cloudburstmc.api.event.entity.EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionEntityDamageEvent(Entity entity, EntityDamageEvent.DamageCause cause, float damage)EntityDamageEvent(Entity entity, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier,Float> modifiers) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCause()floatfloatfloatfloatfloatbooleanvoidsetAttackCooldown(int attackCooldown)voidsetDamage(float damage)voidsetDamage(float damage, EntityDamageEvent.DamageModifier type)Methods inherited from class org.cloudburstmc.api.event.entity.EntityEvent
getEntityMethods inherited from class org.cloudburstmc.api.event.Event
isCancelled, setCancelled, setCancelledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Constructor Details
-
EntityDamageEvent
-
EntityDamageEvent
public EntityDamageEvent(Entity entity, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier,Float> modifiers)
-
-
Method Details
-
getCause
-
getOriginalDamage
public float getOriginalDamage() -
getOriginalDamage
-
getDamage
public float getDamage() -
getDamage
-
setDamage
public void setDamage(float damage) -
setDamage
-
isApplicable
-
getFinalDamage
public float getFinalDamage() -
getAttackCooldown
public int getAttackCooldown() -
setAttackCooldown
public void setAttackCooldown(int attackCooldown) -
canBeReducedByArmor
public boolean canBeReducedByArmor()
-