mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 11:22:15 +01:00
Adding EntityDamageEvent.setDamage()
By: James Logsdon <dwarf@girsbrain.org>
This commit is contained in:
parent
45d9101f82
commit
33c6be20bd
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
|||
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.
|
||||
* @return A DamageCause value detailing the cause of the damage.
|
||||
|
|
Loading…
Add table
Reference in a new issue