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.
|
@NotNull Attribute getAttribute()
double getBaseValue()
void setBaseValue(double value)
value
- new base value@NotNull Collection<AttributeModifier> getModifiers()
void addModifier(@NotNull AttributeModifier modifier)
modifier
- to addvoid removeModifier(@NotNull AttributeModifier modifier)
modifier
- to removedouble getValue()
double getDefaultValue()
Copyright © 2022. All rights reserved.