mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 07:17:27 +00:00
Merge branch 'dev' into player-anims
This commit is contained in:
commit
bb5b3f5f00
2 files changed
+10
-1
No files matched your search
@@ -25,6 +25,15 @@ public class DataTimers implements ITimers {
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
public int[] timerIds() {
|
||||
Integer[] ids = timers.keySet().toArray(new Integer[0]);
|
||||
int[] intIds = new int[ids.length];
|
||||
for (int i = 0; i < ids.length; i++) {
|
||||
intIds[i] = ids[i];
|
||||
}
|
||||
return intIds;
|
||||
}
|
||||
|
||||
public void start(int id, int ticks, boolean repeat) {
|
||||
if(this.timers.containsKey(id)) {
|
||||
throw new CustomNPCsException("There is already a timer with id: " + id);
|
||||
|
||||
Reference in new issue
Block a user