mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 08:49:41 +00:00
More overloads and cleanup
This commit is contained in:
1 parent
0e8db79605
commit
67926477be
3 files changed
+21
-8
No files matched your search
@@ -89,10 +89,8 @@ public class Action implements IAction {
|
||||
executeTask();
|
||||
}
|
||||
|
||||
if (maxCount > -1 && count >= maxCount) {
|
||||
if (maxCount > -1 && count >= maxCount)
|
||||
markDone();
|
||||
return;
|
||||
}
|
||||
|
||||
duration++;
|
||||
}
|
||||
@@ -145,8 +143,8 @@ public class Action implements IAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction setMaxDuration(int x) {
|
||||
this.maxDuration = Math.max(-1, x);
|
||||
public IAction setMaxDuration(int ticks) {
|
||||
this.maxDuration = Math.max(-1, ticks);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -156,8 +154,8 @@ public class Action implements IAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction times(int x) {
|
||||
this.maxCount = Math.max(-1, x);
|
||||
public IAction times(int n) {
|
||||
this.maxCount = Math.max(-1, n);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user