mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 14:54:43 +00:00
Implemented ActionQueue to Action
This commit is contained in:
1 parent
eddcccdebf
commit
d5835ddc6d
1 file changed
+11
@@ -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
|
||||
|
||||
Reference in new issue
Block a user