Action.getManager()

This commit is contained in:
bigguy345 committed 2025-04-28 10:42:46 +03:00
1 parent 9590f9ffff
commit c9a970adce
1 file changed
+8
@@ -1,5 +1,7 @@
package noppes.npcs.api.handler.data;
import noppes.npcs.scripted.ScriptedActionManager;
import java.util.function.Consumer;
/**
@@ -15,6 +17,12 @@ public interface IAction {
*/
IAction setTask(Consumer<IAction> task);
/**
*
* @return action manager the action is scheduled on
*/
ScriptedActionManager getManager();
/**
* @return how many times this action’s {@code action.accept(this)} callback has run (or how many times task ran)
*/