This commit is contained in:
Kam committed 2025-03-13 15:36:30 -04:00
1 parent c81e848895
commit c7a74a3e0e
59 files changed
+506 -592

No files matched your search

+6 -4
View File
@@ -8,8 +8,8 @@ public interface ITimers {
* Adds a timer to the NPC or player with the given attributes. If this function is used and there is already a
* timer with the given ID, an exception will be thrown.
*
* @param id The id of the timer.
* @param ticks The amount of ticks before the timer ends.
* @param id The id of the timer.
* @param ticks The amount of ticks before the timer ends.
* @param repeat Whether this timer repeats when it reaches its maximum amount of ticks.
*/
void start(int id, int ticks, boolean repeat);
@@ -18,13 +18,14 @@ public interface ITimers {
* Adds a timer to the NPC or player with the given attributes. No exception will be thrown if there is already a
* timer with the given ID when using this function.
*
* @param id The id of the timer.
* @param ticks The amount of ticks before the timer ends.
* @param id The id of the timer.
* @param ticks The amount of ticks before the timer ends.
* @param repeat Whether this timer repeats when it reaches its maximum amount of ticks.
*/
void forceStart(int id, int ticks, boolean repeat);
/**
*
* @return True if the set of timers contains a timer with the given id, false otherwise.
*/
boolean has(int id);
@@ -79,6 +80,7 @@ public interface ITimers {
void setRepeats(int id, boolean repeat);
/**
*
* @return The amount of timers in the set of timers.
*/
int size();