Search in sources :

Example 6 with TankSlot

use of binnie.core.machines.inventory.TankSlot in project Binnie by ForestryMC.

the class LumbermillMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.LUMBERMILL);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    InventorySlot slotLog = inventory.addSlot(SLOT_LOG, getSlotRL("input"));
    slotLog.setValidator(new SlotValidatorLog(machine.getWorld()));
    slotLog.forbidExtraction();
    inventory.addSlot(SLOT_PLANKS, getSlotRL("output")).setReadOnly();
    inventory.addSlot(SLOT_BARK, getSlotRL("byproduct")).setReadOnly();
    inventory.addSlot(SLOT_SAWDUST, getSlotRL("byproduct")).setReadOnly();
    final ComponentTankContainer tanks = new ComponentTankContainer(machine);
    TankSlot tankWater = tanks.addTank(TANK_WATER, "input", TANK_WATER_CAPACITY);
    tankWater.setValidator(new TankValidator.Basic(ManagerLiquid.WATER));
    new ComponentPowerReceptor(machine);
    new LumbermillLogic(machine);
}
Also used : ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ComponentTankContainer(binnie.core.machines.inventory.ComponentTankContainer) TankSlot(binnie.core.machines.inventory.TankSlot) InventorySlot(binnie.core.machines.inventory.InventorySlot) TankValidator(binnie.core.machines.inventory.TankValidator) SlotValidatorLog(binnie.extratrees.machines.lumbermill.window.SlotValidatorLog) ComponentPowerReceptor(binnie.core.machines.power.ComponentPowerReceptor)

Aggregations

TankSlot (binnie.core.machines.inventory.TankSlot)6 ComponentInventorySlots (binnie.core.machines.inventory.ComponentInventorySlots)5 ComponentTankContainer (binnie.core.machines.inventory.ComponentTankContainer)5 ComponentPowerReceptor (binnie.core.machines.power.ComponentPowerReceptor)5 InventorySlot (binnie.core.machines.inventory.InventorySlot)3 ComponentChargedSlots (binnie.core.machines.inventory.ComponentChargedSlots)1 ComponentInventoryTransfer (binnie.core.machines.inventory.ComponentInventoryTransfer)1 SlotValidator (binnie.core.machines.inventory.SlotValidator)1 TankValidator (binnie.core.machines.inventory.TankValidator)1 SlotValidatorBreweryGrain (binnie.extratrees.machines.brewery.window.SlotValidatorBreweryGrain)1 SlotValidatorBreweryIngredient (binnie.extratrees.machines.brewery.window.SlotValidatorBreweryIngredient)1 SlotValidatorBreweryYeast (binnie.extratrees.machines.brewery.window.SlotValidatorBreweryYeast)1 TankValidatorFermentInput (binnie.extratrees.machines.brewery.window.TankValidatorFermentInput)1 TankValidatorFermentOutput (binnie.extratrees.machines.brewery.window.TankValidatorFermentOutput)1 TankValidatorDistilleryInput (binnie.extratrees.machines.distillery.window.TankValidatorDistilleryInput)1 TankValidatorDistilleryOutput (binnie.extratrees.machines.distillery.window.TankValidatorDistilleryOutput)1 SlotValidatorLog (binnie.extratrees.machines.lumbermill.window.SlotValidatorLog)1 ComponentGeneticGUI (binnie.genetics.machine.ComponentGeneticGUI)1 EthanolTankValidator (binnie.genetics.machine.EthanolTankValidator)1 NumberFormat (java.text.NumberFormat)1