mmb.engine.generator.Generators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
/**
*
*/
package mmb.engine.generator;
import java.util.List;
import javax.swing.DefaultListModel;
import mmb.NN;
import monniasza.collects.Collects;
/**
* @author oskar
*
*/
public class Generators {
private static boolean inited = false;
public static void init() {
if(inited) return;
add(new GeneratorMultiBiome());
add(new GeneratorPlain());
inited = true;
}
@NN public static final DefaultListModel generators = new DefaultListModel<>();
@NN public static final List generatorsList = Collects.toWritableList(generators);
public static void add(Generator g) {
generators.addElement(g);
}
public static void remove(Generator g) {
generators.removeElement(g);
}
}