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

This commit is contained in:
Joel Strasser 2024-01-08 19:08:49 +11:00 committed by md_5
parent b125516c6e
commit e3d960f2a7
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

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