From 6d7bd7b8d4e980fc3daaca7aad22975a5a538785 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 9 Dec 2016 12:30:32 +1100 Subject: [PATCH] Add API to get default value of an Attribute By: md_5 --- .../main/java/org/bukkit/attribute/AttributeInstance.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java b/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java index 92194b3597..ca8b76a6f1 100644 --- a/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java +++ b/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java @@ -57,4 +57,11 @@ public interface AttributeInstance { * @return the total attribute value */ double getValue(); + + /** + * Gets the default value of the Attribute attached to this instance. + * + * @return server default value + */ + double getDefaultValue(); }