mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 04:32:39 +00:00
Added timer functions.
ticks(int id): Gets the remaining ticks in the timer that matches this id. setTicks(int id, int ticks): Sets the remaining ticks in the timer that matches this id. maxTicks(int id): Gets the maximum ticks that must elapse for the timer that matches this id to finish. setMaxTicks(int id, int ticks): Sets the maximum ticks that must elapse for the timer that matches this id to finish. repeats(int id): Returns true if the timer with the given id is set to repeat, false otherwise. setRepeats(int id, bool repeat): Sets whether the timer with the given id should repeat. If true, the timer will repeat, and not repeat otherwise.
This commit is contained in:
1 parent
22b622d46c
commit
403738262c
2 files changed
+46
No files matched your search
@@ -18,5 +18,17 @@ public interface ITimers {
|
||||
|
||||
void clear();
|
||||
|
||||
int ticks(int id);
|
||||
|
||||
void setTicks(int id, int ticks);
|
||||
|
||||
int maxTicks(int id);
|
||||
|
||||
void setMaxTicks(int id, int maxTicks);
|
||||
|
||||
boolean repeats(int id);
|
||||
|
||||
void setRepeats(int id, boolean repeat);
|
||||
|
||||
int size();
|
||||
}
|
||||
Reference in new issue
Block a user