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