mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 18:24:44 +00:00
Added onStart(task) and onDone(task) for IAction
This commit is contained in:
1 parent
9aa29d7167
commit
792aac8a96
1 file changed
+14
@@ -46,6 +46,20 @@ public interface IAction {
|
||||
*/
|
||||
int getCount();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param task Fires right after action gets scheduled at duration 0
|
||||
* @return
|
||||
*/
|
||||
IAction onStart(Consumer<IAction> task);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param task Fires right before a marked done action gets removed from it's IActionQueue
|
||||
* @return
|
||||
*/
|
||||
IAction onDone(Consumer<IAction> task);
|
||||
|
||||
/**
|
||||
* @return how many ticks have elapsed since this action actually began (excluding start delay)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user