public interface AttributeInstance
Modifier and Type | Method and Description |
---|---|
void |
addModifier(@NotNull AttributeModifier modifier)
Add a modifier to this instance.
|
@NotNull 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.
|
@NotNull 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(@NotNull AttributeModifier modifier)
Remove a modifier from this instance.
|
void |
setBaseValue(double value)
Set the base value of this instance.
|
@NotNull @NotNull Attribute getAttribute()
double getBaseValue()
void setBaseValue(double value)
value
- new base value@NotNull @NotNull Collection<AttributeModifier> getModifiers()
void addModifier(@NotNull @NotNull AttributeModifier modifier)
modifier
- to addvoid removeModifier(@NotNull @NotNull AttributeModifier modifier)
modifier
- to removedouble getValue()
double getDefaultValue()
Copyright © 2021. All rights reserved.