public class ModifiableAttributeInstance extends java.lang.Object implements IAttributeInstance
Constructor and Description |
---|
ModifiableAttributeInstance(BaseAttributeMap p_i1608_1_,
IAttribute p_i1608_2_) |
Modifier and Type | Method and Description |
---|---|
void |
applyModifier(AttributeModifier p_111121_1_) |
java.util.Collection |
func_111122_c() |
IAttribute |
getAttribute() |
double |
getAttributeValue() |
double |
getBaseValue() |
AttributeModifier |
getModifier(java.util.UUID p_111127_1_) |
java.util.Collection |
getModifiersByOperation(int p_111130_1_) |
void |
removeAllModifiers() |
void |
removeModifier(AttributeModifier p_111124_1_) |
void |
setBaseValue(double p_111128_1_) |
public ModifiableAttributeInstance(BaseAttributeMap p_i1608_1_, IAttribute p_i1608_2_)
public IAttribute getAttribute()
getAttribute
in interface IAttributeInstance
public double getBaseValue()
getBaseValue
in interface IAttributeInstance
public void setBaseValue(double p_111128_1_)
setBaseValue
in interface IAttributeInstance
public java.util.Collection getModifiersByOperation(int p_111130_1_)
public java.util.Collection func_111122_c()
func_111122_c
in interface IAttributeInstance
public AttributeModifier getModifier(java.util.UUID p_111127_1_)
getModifier
in interface IAttributeInstance
public void applyModifier(AttributeModifier p_111121_1_)
applyModifier
in interface IAttributeInstance
public void removeModifier(AttributeModifier p_111124_1_)
removeModifier
in interface IAttributeInstance
public void removeAllModifiers()
removeAllModifiers
in interface IAttributeInstance
public double getAttributeValue()
getAttributeValue
in interface IAttributeInstance