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