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

mmb.beans.BlockSetting 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.beans;

import mmb.Nil;
import mmb.data.variables.ListenableValue;
import mmb.engine.block.BlockType;

/**
 * A block with replaceable block configuration
 * @author oskar
 */
public interface BlockSetting {
	/** @return the variable used to set block settings */
	public ListenableValue<@Nil BlockType> getBlockVariable();
	/** @return currently selected block */
	public default BlockType blockSetting() {
		return getBlockVariable().get();
	}
	/**
	 * Set the block setting
	 * @param setting new block
	 */
	public default void setBlockSetting(@Nil BlockType setting) {
		getBlockVariable().set(setting);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy