Package noppes.npcs.api.handler.data
Interface ICustomAttribute
-
public interface ICustomAttributeRepresents an instance of a custom attribute.A custom attribute instance encapsulates an
IAttributeDefinitionalong with its current calculated value (which may be affected by modifiers).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAttributeDefinitiongetAttribute()Returns the attribute definition associated with this custom attribute.floatgetValue()Returns the current value of this attribute.
-
-
-
Method Detail
-
getAttribute
IAttributeDefinition getAttribute()
Returns the attribute definition associated with this custom attribute.- Returns:
- the
IAttributeDefinitioninstance defining this attribute
-
getValue
float getValue()
Returns the current value of this attribute.- Returns:
- the float value representing the attribute's current state
-
-