Search in sources :

Example 1 with SlotValidatorSqueezable

use of binnie.extratrees.machines.fruitpress.window.SlotValidatorSqueezable in project Binnie by ForestryMC.

the class FruitPressMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.PRESS);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    final InventorySlot input = inventory.addSlot(SLOT_FRUIT, getSlotRL("input"));
    input.setValidator(new SlotValidatorSqueezable());
    input.forbidExtraction();
    final InventorySlot process = inventory.addSlot(SLOT_CURRENT, getSlotRL("process"));
    process.setValidator(new SlotValidatorSqueezable());
    process.forbidInteraction();
    final ComponentTankContainer tanks = new ComponentTankContainer(machine);
    tanks.addTank(TANK_OUTPUT, "output", TANK_OUTPUT_CAPACITY).setReadOnly();
    new ComponentPowerReceptor(machine);
    new ComponentInventoryTransfer(machine).addRestock(new int[] { SLOT_FRUIT }, SLOT_CURRENT, 1);
    new FruitPressLogic(machine);
}
Also used : ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ComponentTankContainer(binnie.core.machines.inventory.ComponentTankContainer) SlotValidatorSqueezable(binnie.extratrees.machines.fruitpress.window.SlotValidatorSqueezable) InventorySlot(binnie.core.machines.inventory.InventorySlot) ComponentInventoryTransfer(binnie.core.machines.inventory.ComponentInventoryTransfer) ComponentPowerReceptor(binnie.core.machines.power.ComponentPowerReceptor)

Aggregations

ComponentInventorySlots (binnie.core.machines.inventory.ComponentInventorySlots)1 ComponentInventoryTransfer (binnie.core.machines.inventory.ComponentInventoryTransfer)1 ComponentTankContainer (binnie.core.machines.inventory.ComponentTankContainer)1 InventorySlot (binnie.core.machines.inventory.InventorySlot)1 ComponentPowerReceptor (binnie.core.machines.power.ComponentPowerReceptor)1 SlotValidatorSqueezable (binnie.extratrees.machines.fruitpress.window.SlotValidatorSqueezable)1