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

mmb.content.electric.machines.ProcessorComplexBlock 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.ComplexRecipeGroup;
import mmb.engine.craft.rgroups.ComplexRecipeGroup.ComplexRecipe;

/**
 * @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, 1000, 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;
	}

	

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy