mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 06:44:43 +00:00
OVERLOAD !!
This commit is contained in:
1 parent
30f3e562c8
commit
1b751ad5d2
1 file changed
+4
-2
@@ -42,8 +42,8 @@ public interface IAction {
|
||||
/**
|
||||
* @return the maximum number of ticks this action is allowed to run before auto-terminating
|
||||
*
|
||||
* P.S: If the max duration is reached and this IAction is threaded using {@link #threadify()} and the thread is paused using any of the pausing methods,
|
||||
* the thread is forcibly resumed and finishes the task execution once.
|
||||
* P.S: If max duration is reached and this IAction's thread (created using {@link #threadify()}) is paused by any of the pausing methods,
|
||||
* the thread is forcibly resumed and finishes the task execution.
|
||||
*/
|
||||
int getMaxDuration();
|
||||
|
||||
@@ -167,6 +167,8 @@ public interface IAction {
|
||||
|
||||
IAction parallel(String name, int startAfterTicks, Consumer<IAction> task);
|
||||
|
||||
IAction parallel(String name, int maxDuration, int delay, Consumer<IAction> t);
|
||||
|
||||
/**
|
||||
* Enqueue another action immediately after this one.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user