diff --git a/src/main/java/quantumcraft/util/QIGUtil.java b/src/main/java/quantumcraft/util/QIGUtil.java new file mode 100644 index 0000000..5d389e6 --- /dev/null +++ b/src/main/java/quantumcraft/util/QIGUtil.java @@ -0,0 +1,29 @@ +package quantumcraft.util; + +import quantumcraft.net.Location; + +import java.util.ArrayList; + +public class QIGUtil { + private static ArrayList generators = new ArrayList(); + + public static ArrayList getGenerators() { + return generators; + } + + public static void setGenerators(ArrayList generators) { + QIGUtil.generators = generators; + } + + public static boolean addGenerator(Location location) { + return generators.add(location); + } + + public static Location removeGenerator(int index) { + return generators.remove(index); + } + + public static void clearGenerators() { + generators.clear(); + } +}