Package | Description |
---|---|
org.bukkit.event.entity |
Modifier and Type | Method | Description |
---|---|---|
static EntityDamageEvent.DamageModifier |
EntityDamageEvent.DamageModifier.valueOf(String name) |
Deprecated.
Returns the enum constant of this type with the specified name.
|
static EntityDamageEvent.DamageModifier[] |
EntityDamageEvent.DamageModifier.values() |
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
double |
EntityDamageEvent.getDamage(EntityDamageEvent.DamageModifier type) |
Gets the damage change for some modifier
|
double |
EntityDamageEvent.getOriginalDamage(EntityDamageEvent.DamageModifier type) |
Gets the original damage for the specified modifier, as defined at this
event's construction.
|
boolean |
EntityDamageEvent.isApplicable(EntityDamageEvent.DamageModifier type) |
This checks to see if a particular modifier is valid for this event's
caller, such that,
EntityDamageEvent.setDamage(DamageModifier, double) will not
throw an UnsupportedOperationException . |
void |
EntityDamageEvent.setDamage(EntityDamageEvent.DamageModifier type,
double damage) |
Sets the damage for the specified modifier.
|
Constructor | Description |
---|---|
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) |
|
EntityDamageByEntityEvent(Entity damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
Map<EntityDamageEvent.DamageModifier,Double> modifiers,
Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions) |
|
EntityDamageEvent(Entity damagee,
EntityDamageEvent.DamageCause cause,
Map<EntityDamageEvent.DamageModifier,Double> modifiers,
Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions) |
Copyright © 2020. All rights reserved.