mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
Change attackDelay variable to be called SwingWarmup | Better Naming
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user