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

mmb.content.electric.machines.ProcessorComplexCatalyzedBlock 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<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
package mmb.content.electric.machines;

import mmb.NN;
import mmb.content.electric.ElectricMachineGroup.ElectroMachineType;
import mmb.content.electric.helper.ComplexProcessHelper;
import mmb.engine.craft.rgroups.ComplexCatRecipeGroup;
import mmb.engine.craft.rgroups.ComplexCatRecipeGroup.ComplexCatalyzedRecipe;
import mmb.engine.inv.storage.SingleItemInventory;

/**
 * @author oskar
 *
 */
public class ProcessorComplexCatalyzedBlock extends ProcessorAbstractBlock{
	//Constructor
	public ProcessorComplexCatalyzedBlock(ElectroMachineType type, ComplexCatRecipeGroup group) {
		super(type);
		this.recipes = group;
		helper = new ComplexProcessHelper<@NN ComplexCatalyzedRecipe>(group, in, out0, 1000, elec, type.volt, catalyst);
	}

	//Contents
	@NN public final ComplexCatRecipeGroup recipes;
	@Override
	public ComplexCatRecipeGroup recipes() {
		return recipes;
	}

	@NN public final SingleItemInventory catalyst = new SingleItemInventory();
	@Override
	public SingleItemInventory catalyst() {
		return catalyst;
	}
	
	@NN private final ComplexProcessHelper<@NN ComplexCatalyzedRecipe> helper;
	@Override
	public ComplexProcessHelper<@NN ComplexCatalyzedRecipe> helper() {
		return helper;
	}
	
	//Block methods
	@Override
	protected ProcessorAbstractBlock copy0() {
		ProcessorComplexCatalyzedBlock copy = new ProcessorComplexCatalyzedBlock(type, recipes);
		copy.catalyst.setContents(catalyst.getContents());
		copy.helper.set(helper);
		return copy;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy