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);
}
Aggregations