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,
Map<EntityDamageEvent.DamageModifier,Double> modifiers,
Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,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(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)
public EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions)
@Nullable public Block getDamager()
Copyright © 2019. All rights reserved.