public interface AttributeInstance
限定符和类型 | 方法和说明 |
---|---|
void |
addModifier(AttributeModifier modifier)
向次实例添加要修改的修饰符(属性).
|
Attribute |
getAttribute()
属于该实例的属性.
|
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()
获取该实例上的所有修饰符(属性).
|
double |
getValue()
获取当前实例的值,(所有已经应用的值)
原文:Get the value of this instance after all associated modifiers have been
applied.
|
void |
removeModifier(AttributeModifier modifier)
从此实例内移除一个修饰符(属性).
|
void |
setBaseValue(double value)
设置基准值为某个属性.
|
Attribute getAttribute()
原文:The attribute pertaining to this instance.
double getBaseValue()
原文:Base value of this instance before modifiers are applied.
void setBaseValue(double value)
原文:Set the base value of this instance.
value
- 基准值java.util.Collection<AttributeModifier> getModifiers()
原文:Get all modifiers present on this instance.
void addModifier(AttributeModifier modifier)
原文:Add a modifier to this instance.
modifier
- 添加的属性void removeModifier(AttributeModifier modifier)
原文:Remove a modifier from this instance.
modifier
- 移除的属性double getValue()
原文:Get the value of this instance after all associated modifiers have been applied.
double getDefaultValue()