mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
SPIGOT-7547: Remark that Damageable#setAbsorptionAmount() is capped to a specific value
By: Joel Strasser <strasser999@gmail.com>
This commit is contained in:
@@ -49,6 +49,10 @@ public interface Damageable extends Entity {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the entity's absorption amount.
|
* 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
|
* @param amount new absorption amount from 0
|
||||||
* @throws IllegalArgumentException thrown if health is {@literal < 0} or
|
* @throws IllegalArgumentException thrown if health is {@literal < 0} or
|
||||||
|
Reference in New Issue
Block a user