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

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

import mmb.NN;

/**
 * @author oskar
 *
 */
public class DataValueInt implements Variable<@NN Integer> {
	private int value;
	/**
	 * Creates a new interger variable
	 * @param data 
	 */
	public DataValueInt(int data) {
		value = data;
	}
	@Deprecated @Override
	public @NN Integer get() {
		return Integer.valueOf(value);
	}
	@Deprecated @Override
	public void set(@NN Integer newValue) {
		value = newValue.intValue();
	}
	public int getInt() {
		return value;
	}
	public void set(int newValue) {
		value = newValue;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy