Added more create methods

This commit is contained in:
bigguy345 committed 2025-04-28 07:26:39 +03:00
1 parent 02d13e45d7
commit 8980850d7c
2 files changed
+8 -12

No files matched your search

@@ -72,18 +72,6 @@ public interface IAction {
*/
int getStartAfterTicks();
/**
* Factory helper so that from within one action you can create
* new IAction instances without referencing the manager directly.
*
* @param name a unique name for the new action
* @param maxDuration its maximum lifetime
* @param startAfterTicks initial delay in ticks
* @param action callback logic
* @return a new IAction
*/
IAction create(String name, int maxDuration, int startAfterTicks, Consumer<IAction> action);
/**
* @return the next action in the queue (or null if none or at end)
*/