mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 16:04:44 +00:00
Added print debugging dump methods for most IAction framework components
This commit is contained in:
1 parent
14f7bd3dd4
commit
9aa29d7167
3 files changed
+23
-1
No files matched your search
@@ -5,6 +5,7 @@ import noppes.npcs.api.handler.data.IActionChain;
|
||||
import noppes.npcs.api.handler.data.IActionQueue;
|
||||
import noppes.npcs.api.handler.data.actions.IConditionalAction;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
@@ -354,6 +355,11 @@ public interface IActionManager {
|
||||
|
||||
IAction scheduleParallel(String name, int maxDuration, int delay, Consumer<IAction> task);
|
||||
|
||||
/**
|
||||
* @return All the IActionQueues within this Manager, including main sequential, parallel and conditional
|
||||
*/
|
||||
IActionQueue[] getAllQueues();
|
||||
|
||||
/**
|
||||
* @param name action name to check for
|
||||
* @return true if action is scheduled in any of the available queues
|
||||
@@ -390,5 +396,9 @@ public interface IActionManager {
|
||||
*/
|
||||
IActionChain parallelChain();
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @return a string containing all the IActionQueues active within the manager
|
||||
*/
|
||||
String printQueues();
|
||||
}
|
||||
@@ -126,6 +126,12 @@ public interface IAction {
|
||||
|
||||
IAction removeData(String key);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return a string containing all the stored data key/values of this IAction
|
||||
*/
|
||||
String printData();
|
||||
|
||||
boolean hasData(String key);
|
||||
|
||||
/**
|
||||
|
||||
@@ -127,4 +127,10 @@ public interface IActionQueue {
|
||||
*/
|
||||
|
||||
IActionChain chain();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return a string containing all the scheduled actions within this queue
|
||||
*/
|
||||
String printQueue();
|
||||
}
|
||||
Reference in new issue
Block a user