mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 18:54:54 +00:00
Created IActionQueue
This commit is contained in:
1 parent
6141ae1472
commit
91d3a06742
1 file changed
+56
@@ -0,0 +1,56 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.controllers.data.action.ActionManager;
|
||||
|
||||
import java.util.Queue;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface IActionQueue {
|
||||
IActionQueue start();
|
||||
|
||||
IActionQueue stop();
|
||||
|
||||
ActionManager getManager();
|
||||
|
||||
String getName();
|
||||
|
||||
boolean isParallel();
|
||||
|
||||
Queue<IAction> getQueue();
|
||||
|
||||
IAction schedule(IAction action);
|
||||
|
||||
void schedule(IAction... actions);
|
||||
|
||||
void schedule(Consumer<IAction>... tasks);
|
||||
|
||||
IAction schedule(Consumer<IAction> task);
|
||||
|
||||
IAction schedule(int delay, Consumer<IAction> task);
|
||||
|
||||
IAction schedule(int maxDuration, int delay, Consumer<IAction> task);
|
||||
|
||||
IAction schedule(String name, Consumer<IAction> task);
|
||||
|
||||
IAction schedule(String name, int delay, Consumer<IAction> task);
|
||||
|
||||
IAction schedule(String name, int maxDuration, int delay, Consumer<IAction> task);
|
||||
|
||||
IAction scheduleActionAt(int index, IAction action);
|
||||
|
||||
int getIndex(IAction action);
|
||||
|
||||
IAction getCurrentAction();
|
||||
|
||||
boolean has(IAction action);
|
||||
|
||||
boolean has(String actionName);
|
||||
|
||||
IAction get(String actionName);
|
||||
|
||||
boolean cancel(IAction action);
|
||||
|
||||
boolean cancel(String actionName);
|
||||
|
||||
void clear();
|
||||
}
|
||||
Reference in new issue
Block a user