mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Add API to get default value of an Attribute
By: md_5 <git@md-5.net>
This commit is contained in:
parent
eae60ccc96
commit
6d7bd7b8d4
1 changed files with 7 additions and 0 deletions
|
@ -57,4 +57,11 @@ public interface AttributeInstance {
|
||||||
* @return the total attribute value
|
* @return the total attribute value
|
||||||
*/
|
*/
|
||||||
double getValue();
|
double getValue();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the default value of the Attribute attached to this instance.
|
||||||
|
*
|
||||||
|
* @return server default value
|
||||||
|
*/
|
||||||
|
double getDefaultValue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue