mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
SPIGOT-5317: Create accessors for player absorption hearts
By: md_5 <git@md-5.net>
This commit is contained in:
parent
e55a7d98fc
commit
33f110a246
@ -40,6 +40,22 @@ public interface Damageable extends Entity {
|
||||
*/
|
||||
void setHealth(double health);
|
||||
|
||||
/**
|
||||
* Sets the entity's absorption amount.
|
||||
*
|
||||
* @return absorption amount from 0
|
||||
*/
|
||||
double getAbsorptionAmount();
|
||||
|
||||
/**
|
||||
* Sets the entity's absorption amount.
|
||||
*
|
||||
* @param amount new absorption amount from 0
|
||||
* @throws IllegalArgumentException thrown if health is {@literal < 0} or
|
||||
* non-finite.
|
||||
*/
|
||||
void setAbsorptionAmount(double amount);
|
||||
|
||||
/**
|
||||
* Gets the maximum health this entity has.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user