Attack Speed API

This commit is contained in:
Kam committed 2025-12-30 19:29:32 -05:00
1 parent 305a3778c8
commit d003d6d870
2 files changed
+14

No files matched your search

@@ -61,6 +61,13 @@ public interface IItemCustom extends IItemCustomizable {
*/
void setItemUseAction(int action);
/**
* Sets the attack speed for the scripted item.
* Speed is the max resistantance time between two attacks in ticks.
* @param speed The attack speed
*/
void setAttackSpeed(int speed);
/**
* Sets the enchantability for the scripted item.
* @param enchantability The enchantability
@@ -54,6 +54,13 @@ public interface IItemCustomizable extends IItemStack {
*/
int getEnchantability();
/**
* Gets the attack speed for the scripted item.
* Speed is the max hurt resistant time in ticks (20 ticks = 1 second)
* @return The attack speed
*/
int getAttackSpeed();
/**
* Gets the texture path for the scripted item.
* @return The texture path