diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index c14c039..30b8e07 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -13,6 +13,17 @@ import java.util.function.Function; */ public interface IAction { + /** + * @return the queue this action is scheduled on. null if not scheduled + */ + IActionQueue getQueue(); + + /** + * @param queue Schedules action on this queue. If action was scheduled on different queue, transfers it over from that to this. + * @return + */ + IAction setQueue(IActionQueue queue); + /** * @param task code to execute each time the action fires * @return