All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mmb.engine.generator.Generators Maven / Gradle / Ivy

Go to download

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<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy