mmb.content.electric.machines.ProcessorSimpleBlock 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.electric.machines;
import mmb.NN;
import mmb.content.electric.ElectricMachineGroup.ElectroMachineType;
import mmb.content.electric.helper.SimpleProcessHelper;
import mmb.engine.craft.singles.SimpleRecipeGroup;
/**
* @author oskar
* A machine capable of obtaining resources out of nothing
*/
public class ProcessorSimpleBlock extends ProcessorAbstractBlock{
//Constructor
public ProcessorSimpleBlock(ElectroMachineType type, SimpleRecipeGroup> group) {
super(type);
this.recipes = group;
helper = new SimpleProcessHelper(group, in, out0, 1000, elec, type.volt, null);
}
//Contents
@NN private final SimpleProcessHelper helper;
@Override
public SimpleProcessHelper helper() {
return helper;
}
/** The recipe group used for this machine */
public final SimpleRecipeGroup> recipes;
@Override
public SimpleRecipeGroup> recipes() {
return recipes;
}
//Block methods
@Override
protected ProcessorAbstractBlock copy0() {
return new ProcessorSimpleBlock(type, recipes);
}
}