mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
ActionManager.getAction(name)
This commit is contained in:
1 parent
70cc7b75e4
commit
203a794950
2 files changed
+21
-1
No files matched your search
@@ -141,6 +141,26 @@ public class ScriptedActionManager implements IActionManager {
|
||||
return actionQueue.peekFirst();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction getAction(String name) {
|
||||
for (IAction action : actionQueue) {
|
||||
if (action.getName().equals(name))
|
||||
return action;
|
||||
}
|
||||
|
||||
for (IAction action : parallelActions) {
|
||||
if (action.getName().equals(name))
|
||||
return action;
|
||||
}
|
||||
|
||||
for (IAction action : conditionalActions) {
|
||||
if (action.getName().equals(name))
|
||||
return action;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Queue<IAction> getActionQueue() {
|
||||
return actionQueue;
|
||||
|
||||
Reference in new issue
Block a user