mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-7547: Remark that Damageable#setAbsorptionAmount() is capped to a specific value
This commit is contained in:
parent
b125516c6e
commit
e3d960f2a7
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ public interface Damageable extends Entity {
|
|||
|
||||
/**
|
||||
* Sets the entity's absorption amount.
|
||||
* <p>
|
||||
* Note: The amount is capped to the value of
|
||||
* {@link Attribute#GENERIC_MAX_ABSORPTION}. The effect of this method on
|
||||
* that attribute is currently unspecified and subject to change.
|
||||
*
|
||||
* @param amount new absorption amount from 0
|
||||
* @throws IllegalArgumentException thrown if health is {@literal < 0} or
|
||||
|
|
Loading…
Add table
Reference in a new issue