Added onStart(task) and onDone(task) for IAction

This commit is contained in:
bigguy345 committed 2025-07-06 23:59:30 +03:00
1 parent 9aa29d7167
commit 792aac8a96
1 file changed
+14
@@ -46,6 +46,20 @@ public interface IAction {
*/
int getCount();
/**
*
* @param task Fires right after action gets scheduled at duration 0
* @return
*/
IAction onStart(Consumer<IAction> task);
/**
*
* @param task Fires right before a marked done action gets removed from it's IActionQueue
* @return
*/
IAction onDone(Consumer<IAction> task);
/**
* @return how many ticks have elapsed since this action actually began (excluding start delay)
*/