mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 18:24:44 +00:00
Action.getManager()
This commit is contained in:
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)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user