More overloads and cleanup

This commit is contained in:
bigguy345 committed 2025-06-30 23:00:23 +03:00
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;
}