mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 10:44:47 +00:00
Added more create methods
This commit is contained in:
1 parent
02d13e45d7
commit
8980850d7c
2 files changed
+8
-12
No files matched your search
@@ -72,18 +72,6 @@ public interface IAction {
|
||||
*/
|
||||
int getStartAfterTicks();
|
||||
|
||||
/**
|
||||
* Factory helper so that from within one action you can create
|
||||
* new IAction instances without referencing the manager directly.
|
||||
*
|
||||
* @param name a unique name for the new action
|
||||
* @param maxDuration its maximum lifetime
|
||||
* @param startAfterTicks initial delay in ticks
|
||||
* @param action callback logic
|
||||
* @return a new IAction
|
||||
*/
|
||||
IAction create(String name, int maxDuration, int startAfterTicks, Consumer<IAction> action);
|
||||
|
||||
/**
|
||||
* @return the next action in the queue (or null if none or at end)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user