mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 18:24:44 +00:00
Attack Speed API
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user