mmb.content.stn.block.STNExporter 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.content.stn.block;
import mmb.NN;
import mmb.Nil;
import mmb.content.stn.STN;
import mmb.engine.block.BlockType;
import mmb.engine.inv.Inventories;
import mmb.engine.inv.io.InventoryReader;
import mmb.engine.inv.io.InventoryWriter;
import mmb.engine.item.ItemEntry;
import mmb.engine.rotate.RotatedImageGroup;
/**
* @author oskar
*
*/
public class STNExporter extends STNCycler{
@NN private static final RotatedImageGroup rig = RotatedImageGroup.create("stn/exporter.png");
@Override
public BlockType type() {
return STN.STN_exporter;
}
@Override
public RotatedImageGroup getImage() {
return rig;
}
@Override
protected void runCycle(@Nil ItemEntry item, InventoryWriter writer, InventoryReader reader) {
if(item != null) Inventories.transferStack(network().inv, writer, item, 1);
}
@Override
protected String title() {
return "STN pusher";
}
@Override
protected STNCycler copy1() {
return new STNExporter();
}
}