13
0
geforkt von Mirrors/Paper

Adding EntityDamageEvent.setDamage()

By: James Logsdon <dwarf@girsbrain.org>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-02-11 16:12:43 -05:00
Ursprung 45d9101f82
Commit 33c6be20bd

Datei anzeigen

@ -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.