Cancellable
public class EntityDamageByBlockEvent extends EntityDamageEvent
EntityDamageEvent.DamageCause, EntityDamageEvent.DamageModifier
Event.Result
entity
Constructor | Description |
---|---|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
double damage) |
|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
java.util.Map<EntityDamageEvent.DamageModifier,java.lang.Double> modifiers,
java.util.Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super java.lang.Double,java.lang.Double>> modifierFunctions) |
Modifier and Type | Method | Description |
---|---|---|
Block |
getDamager() |
Returns the block that damaged the player.
|
getCause, getDamage, getDamage, getFinalDamage, getHandlerList, getHandlers, getOriginalDamage, isApplicable, isCancelled, setCancelled, setDamage, setDamage
getEntity, getEntityType
getEventName, isAsynchronous
public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, java.util.Map<EntityDamageEvent.DamageModifier,java.lang.Double> modifiers, java.util.Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super java.lang.Double,java.lang.Double>> modifierFunctions)
public Block getDamager()
Copyright © 2018. All rights reserved.