Search in sources :

Example 1 with TankValidatorDistilleryInput

use of binnie.extratrees.machines.distillery.window.TankValidatorDistilleryInput in project Binnie by ForestryMC.

the class DistilleryMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.DISTILLERY);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    final ComponentTankContainer tanks = new ComponentTankContainer(machine);
    final TankSlot input = tanks.addTank(TANK_INPUT, "input", 5000);
    input.setValidator(new TankValidatorDistilleryInput());
    input.forbidExtraction();
    final TankSlot output = tanks.addTank(TANK_OUTPUT, "output", 5000);
    output.setValidator(new TankValidatorDistilleryOutput());
    output.setReadOnly();
    new ComponentPowerReceptor(machine);
    new DistilleryLogic(machine);
}
Also used : ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ComponentTankContainer(binnie.core.machines.inventory.ComponentTankContainer) TankSlot(binnie.core.machines.inventory.TankSlot) TankValidatorDistilleryOutput(binnie.extratrees.machines.distillery.window.TankValidatorDistilleryOutput) TankValidatorDistilleryInput(binnie.extratrees.machines.distillery.window.TankValidatorDistilleryInput) ComponentPowerReceptor(binnie.core.machines.power.ComponentPowerReceptor)

Aggregations

ComponentInventorySlots (binnie.core.machines.inventory.ComponentInventorySlots)1 ComponentTankContainer (binnie.core.machines.inventory.ComponentTankContainer)1 TankSlot (binnie.core.machines.inventory.TankSlot)1 ComponentPowerReceptor (binnie.core.machines.power.ComponentPowerReceptor)1 TankValidatorDistilleryInput (binnie.extratrees.machines.distillery.window.TankValidatorDistilleryInput)1 TankValidatorDistilleryOutput (binnie.extratrees.machines.distillery.window.TankValidatorDistilleryOutput)1