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

mmb.data.variables.DataValue 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<

The newest version!
/**
 * 
 */
package mmb.data.variables;

/**
 * @author oskar
 * @param  type of data
 *
 */
public class DataValue implements Variable {
	private T value;
	/**
	 * Creates a variable
	 * @param data initial value
	 */
	public DataValue(T data) {
		value = data;
	}
	@Override
	public T get() {
		return value;
	}
	@Override
	public void set(T newValue) {
		value = newValue;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy