mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 08:24:47 +00:00
a buncha IAction adjustments
This commit is contained in:
1 parent
e5c347e0a4
commit
14f7bd3dd4
4 files changed
+34
-1
No files matched your search
@@ -134,6 +134,7 @@ public interface IAction {
|
||||
*/
|
||||
int getUpdateEvery();
|
||||
|
||||
|
||||
/**
|
||||
* Set how many ticks between each execution of the action task.
|
||||
*
|
||||
@@ -141,6 +142,18 @@ public interface IAction {
|
||||
*/
|
||||
IAction updateEvery(int ticks);
|
||||
|
||||
/**
|
||||
* Executes task every tick (Sets updateEvery to 1)
|
||||
* @return
|
||||
*/
|
||||
IAction everyTick();
|
||||
|
||||
/**
|
||||
* Executes task every second (Sets updateEvery to 20)
|
||||
* @return
|
||||
*/
|
||||
IAction everySecond();
|
||||
|
||||
/**
|
||||
* @return how many ticks remain before the action begins (initial delay)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user