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<
The newest version!
/**
*
*/
package mmb.engine.generator;
import java.util.List;
import javax.swing.DefaultListModel;
import mmb.NN;
import monniasza.collects.Collects;
/**
* A set of world generation utilities
* @author oskar
*/
public class Generators {
private static boolean inited = false;
/** Initializes world generators */
public static void init() {
if(inited) return;
generators.addElement(new GeneratorMultiBiome());
generators.addElement(new GeneratorPlain());
inited = true;
}
/** A list of the world generators */
@NN public static final DefaultListModel generators = new DefaultListModel<>();
/** A list of the world generators */
@NN public static final List generatorsList = Collects.toWritableList(generators);
}