diff --git a/java/noppes/npcs/api/item/IItemCustom.java b/java/noppes/npcs/api/item/IItemCustom.java index 355d900..c91f087 100644 --- a/java/noppes/npcs/api/item/IItemCustom.java +++ b/java/noppes/npcs/api/item/IItemCustom.java @@ -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 diff --git a/java/noppes/npcs/api/item/IItemCustomizable.java b/java/noppes/npcs/api/item/IItemCustomizable.java index 58df90b..68e9fcf 100644 --- a/java/noppes/npcs/api/item/IItemCustomizable.java +++ b/java/noppes/npcs/api/item/IItemCustomizable.java @@ -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