Scripting for Item Attributes, Controller, ItemStack, IPlayer

This commit is contained in:
Kam committed 2025-03-14 05:35:07 -04:00
1 parent c7a74a3e0e
commit dfa15687d0
6 files changed
+432 -35

No files matched your search

@@ -0,0 +1,25 @@
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();
}