geforkt von Mirrors/Paper
Adding EntityDamageEvent.setDamage()
By: James Logsdon <dwarf@girsbrain.org>
Dieser Commit ist enthalten in:
Ursprung
45d9101f82
Commit
33c6be20bd
@ -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.
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren