public interface AttributeInstance
Modifier and Type | Method and Description |
---|---|
void |
addModifier(AttributeModifier modifier)
Add a modifier to this instance.
|
Attribute |
getAttribute()
The attribute pertaining to this instance.
|
double |
getBaseValue()
Base value of this instance before modifiers are applied.
|
double |
getDefaultValue()
Gets the default value of the Attribute attached to this instance.
|
Collection<AttributeModifier> |
getModifiers()
Get all modifiers present on this instance.
|
double |
getValue()
Get the value of this instance after all associated modifiers have been
applied.
|
void |
removeModifier(AttributeModifier modifier)
Remove a modifier from this instance.
|
void |
setBaseValue(double value)
Set the base value of this instance.
|
Attribute getAttribute()
double getBaseValue()
void setBaseValue(double value)
value
- new base valueCollection<AttributeModifier> getModifiers()
void addModifier(AttributeModifier modifier)
modifier
- to addvoid removeModifier(AttributeModifier modifier)
modifier
- to removedouble getValue()
double getDefaultValue()
Copyright © 2021. All rights reserved.