Updated the library.

This commit is contained in:
Jitse Boonstra
2019-08-03 13:47:12 +02:00
parent b8a7dcaddb
commit e0752c5d7e
68 changed files with 1116 additions and 696 deletions
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.internal;
import java.util.HashSet;
import java.util.Set;
/**
* @author Jitse Boonstra
*/
public final class NPCManager {
private static Set<SimpleNPC> npcs = new HashSet<>();
public static Set<SimpleNPC> getAllNPCs() {
return npcs;
}
public static void add(SimpleNPC npc) {
npcs.add(npc);
}
public static void remove(SimpleNPC npc) {
npcs.remove(npc);
}
private NPCManager() {
throw new SecurityException("You cannot initialize this class.");
}
}