mmb.content.electric.machines.ProcessorComplexBlock 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<
The newest version!
/**
*
*/
package mmb.content.electric.machines;
import mmb.NN;
import mmb.content.electric.ElectricMachineGroup.ElectroMachineType;
import mmb.content.electric.helper.ComplexProcessHelper;
import mmb.content.electric.recipes.ComplexRecipeGroup;
import mmb.content.electric.recipes.ComplexRecipeGroup.ComplexRecipe;
/**
* Runs a complex, no-catalyst recipe
* @author oskar
*/
public class ProcessorComplexBlock extends ProcessorAbstractBlock{
//Constructor
/**
* Creates an alloy smelter
* @param type
* @param group
*/
public ProcessorComplexBlock(ElectroMachineType type, ComplexRecipeGroup group) {
super(type);
this.group = group;
helper = new ComplexProcessHelper<@NN ComplexRecipe>(group, in, out0, type.powermul, elec, type.volt, null);
}
//Contents
@NN public final ComplexRecipeGroup group;
@Override
public ComplexRecipeGroup recipes() {
return group;
}
@NN private final ComplexProcessHelper<@NN ComplexRecipe> helper;
@Override
public ComplexProcessHelper<@NN ComplexRecipe> helper() {
return helper;
}
//Block methods
@Override
protected ProcessorAbstractBlock copy0() {
ProcessorComplexBlock copy = new ProcessorComplexBlock(type, group);
copy.helper.set(helper);
return copy;
}
}