mmb.engine.inv.NoSuchItemRecord 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.engine.inv;
import mmb.NN;
import mmb.engine.item.ItemEntry;
/**
* @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;
}
@Override
public ItemEntry item() {
return null;
}
@Override
public int insert(int amount) {
return 0;
}
@Override
public int extract(int amount) {
return 0;
}
}