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

mmb.engine.inv.NoSuchItemRecord 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.engine.inv;

import mmb.NN;
import mmb.engine.item.ItemEntry;

/**
 * A non-existent item record
 * @author oskar
 */
public class NoSuchItemRecord implements ItemRecord {
	@NN private final Inventory inv;
	@Override
	public ItemRecord lockInsertions() {
		return this;
	}

	/**
	 * @param inv the target inventory
	 */
	public NoSuchItemRecord(Inventory inv) {
		super();
		this.inv = inv;
	}

	@Override
	public ItemRecord lockExtractions() {
		return this;
	}

	@Override
	public int amount() {
		return 0;
	}

	@Override
	public Inventory inventory() {
		return inv;
	}

	@SuppressWarnings("null")
	@Override
	public ItemEntry item() {
		return null;
	}

	@Override
	public int insert(int amount) {
		return 0;
	}

	@Override
	public int extract(int amount) {
		return 0;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy