13
0
geforkt von Mirrors/Paper

SPIGOT-7547: Remark that Damageable#setAbsorptionAmount() is capped to a specific value

By: Joel Strasser <strasser999@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2024-01-08 19:08:49 +11:00
Ursprung 163900a963
Commit f92b479ba3

Datei anzeigen

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