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