mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Adding EntityDamageEvent.setDamage()
This commit is contained in:
parent
c36a98db64
commit
49ced27311
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
||||||
return damage;
|
return damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the amount of damage caused by the Block
|
||||||
|
* @return The amount of damage caused by the Block
|
||||||
|
*/
|
||||||
|
public void setDamage(int damage) {
|
||||||
|
this.damage = damage;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the cause of the damage.
|
* Gets the cause of the damage.
|
||||||
* @return A DamageCause value detailing the cause of the damage.
|
* @return A DamageCause value detailing the cause of the damage.
|
||||||
|
|
Loading…
Add table
Reference in a new issue