mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 14:14:48 +00:00
Scripting for Item Attributes, Controller, ItemStack, IPlayer
This commit is contained in:
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();
|
||||
}
|
||||
Reference in new issue
Block a user