mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 06:14:44 +00:00
26 lines
703 B
Java
26 lines
703 B
Java
package noppes.npcs.api.handler.data;
|
|
|
|
/**
|
|
* Represents an instance of a custom attribute.
|
|
* <p>
|
|
* A custom attribute instance encapsulates an {@link IAttributeDefinition}
|
|
* along with its current calculated value (which may be affected by modifiers).
|
|
* </p>
|
|
*/
|
|
public interface ICustomAttribute {
|
|
|
|
/**
|
|
* Returns the attribute definition associated with this custom attribute.
|
|
*
|
|
* @return the {@link IAttributeDefinition} instance defining this attribute
|
|
*/
|
|
IAttributeDefinition getAttribute();
|
|
|
|
/**
|
|
* Returns the current value of this attribute.
|
|
*
|
|
* @return the float value representing the attribute's current state
|
|
*/
|
|
float getValue();
|
|
}
|