public interface AttributeInstance
Modifier and Type | Method | 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.
|
java.util.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 valuejava.util.Collection<AttributeModifier> getModifiers()
void addModifier(AttributeModifier modifier)
modifier
- to addvoid removeModifier(AttributeModifier modifier)
modifier
- to removedouble getValue()
double getDefaultValue()
Copyright © 2018. All rights reserved.