From f92b479ba39715ac4c8b43c8d19c9159fd437a86 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 8 Jan 2024 19:08:49 +1100 Subject: [PATCH] SPIGOT-7547: Remark that Damageable#setAbsorptionAmount() is capped to a specific value By: Joel Strasser --- paper-api/src/main/java/org/bukkit/entity/Damageable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Damageable.java b/paper-api/src/main/java/org/bukkit/entity/Damageable.java index fc4d3bcd9..a93418499 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Damageable.java +++ b/paper-api/src/main/java/org/bukkit/entity/Damageable.java @@ -49,6 +49,10 @@ public interface Damageable extends Entity { /** * Sets the entity's absorption amount. + *

+ * 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