Change attackDelay variable to be called SwingWarmup | Better Naming

This commit is contained in:
Kam committed 2024-02-12 03:14:23 -05:00
1 parent eb01579f4a
commit 76000ecf55
6 files changed
+23 -14

No files matched your search

@@ -906,6 +906,20 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
npc.stats.attackRange = range;
}
/**
* @return The swing warmup time in ticks
*/
public int getSwingWarmup(){
return npc.stats.swingWarmUp;
}
/**
* @param ticks The amount of time before damage to swing arm
*/
public void setSwingWarmup(int ticks){
npc.stats.swingWarmUp = ticks;
}
/**
* @return The knockback strength
*/