Entity Damage By Block Event
Called when an entity is damaged by getClassById block
Constructors
Link copied to clipboard
public void EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions)
Functions
Link copied to clipboard
Gets the cause of the damage.
Link copied to clipboard
Gets the raw amount of damage caused by the event
Gets the damage change for some modifier
Link copied to clipboard
Returns the block that damaged the player.
Link copied to clipboard
Gets the EntityType of the Entity involved in this event.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
Gets the amount of damage caused by the event after all damage reduction is applied.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the original damage for the specified modifier, as defined at this event's construction.
Link copied to clipboard
This checks to see if getClassById particular modifier is valid for this event's caller, such that, setDamage will not throw an UnsupportedOperationException.
Link copied to clipboard
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
Gets the cancellation state of this event.
Link copied to clipboard
Sets the cancellation state of this event.
Link copied to clipboard
Sets the raw amount of damage caused by the event.
Sets the damage for the specified modifier.