Search in sources :

Example 1 with ComponentInventorySlots

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

the class InfuserMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.INFUSER);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    final ComponentTankContainer tanks = new ComponentTankContainer(machine);
    final TankSlot input = tanks.addTank(Infuser.TANK_INPUT, "input", 5000);
    input.setValidator(new TankValidatorInfuserInput());
    input.forbidExtraction();
    final TankSlot output = tanks.addTank(Infuser.TANK_OUTPUT, "output", 5000);
    output.setValidator(new TankValidatorInfuserOutput());
    output.setReadOnly();
    new ComponentPowerReceptor(machine);
    new InfuserLogic(machine);
}
Also used : ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ComponentTankContainer(binnie.core.machines.inventory.ComponentTankContainer) TankSlot(binnie.core.machines.inventory.TankSlot) ComponentPowerReceptor(binnie.core.machines.power.ComponentPowerReceptor)

Example 2 with ComponentInventorySlots

use of binnie.core.machines.inventory.ComponentInventorySlots 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)

Example 3 with ComponentInventorySlots

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

the class BreweryMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.BREWERY);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    for (final InventorySlot slot : inventory.addSlotArray(SLOT_RECIPE_GRAINS, new ResourceLocation(Constants.CORE_MOD_ID, "gui.slot.grain"))) {
        slot.setValidator(new SlotValidatorBreweryGrain());
        slot.setType(InventorySlot.Type.Recipe);
    }
    for (final InventorySlot slot : inventory.addSlotArray(SLOTS_INVENTORY, new ResourceLocation(Constants.CORE_MOD_ID, "gui.slot.inventory"))) {
        slot.forbidExtraction();
    }
    final InventorySlot yeast = inventory.addSlot(SLOT_YEAST, getSlotRL("yeast"));
    yeast.setValidator(new SlotValidatorBreweryYeast());
    yeast.setType(InventorySlot.Type.Recipe);
    final InventorySlot ingredient = inventory.addSlot(SLOT_RECIPE_INPUT, getSlotRL("ingredient"));
    ingredient.setValidator(new SlotValidatorBreweryIngredient());
    ingredient.setType(InventorySlot.Type.Recipe);
    final ComponentTankContainer tanks = new ComponentTankContainer(machine);
    TankSlot input = tanks.addTank(TANK_INPUT, "input", 5000);
    input.setValidator(new TankValidatorFermentInput());
    input.forbidExtraction();
    final TankSlot output = tanks.addTank(TANK_OUTPUT, "output", 5000);
    output.setValidator(new TankValidatorFermentOutput());
    output.setReadOnly();
    new ComponentPowerReceptor(machine);
    new BreweryLogic(machine);
}
Also used : SlotValidatorBreweryYeast(binnie.extratrees.machines.brewery.window.SlotValidatorBreweryYeast) ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) InventorySlot(binnie.core.machines.inventory.InventorySlot) SlotValidatorBreweryIngredient(binnie.extratrees.machines.brewery.window.SlotValidatorBreweryIngredient) SlotValidatorBreweryGrain(binnie.extratrees.machines.brewery.window.SlotValidatorBreweryGrain) ComponentTankContainer(binnie.core.machines.inventory.ComponentTankContainer) TankValidatorFermentInput(binnie.extratrees.machines.brewery.window.TankValidatorFermentInput) ResourceLocation(net.minecraft.util.ResourceLocation) TankSlot(binnie.core.machines.inventory.TankSlot) TankValidatorFermentOutput(binnie.extratrees.machines.brewery.window.TankValidatorFermentOutput) ComponentPowerReceptor(binnie.core.machines.power.ComponentPowerReceptor)

Example 4 with ComponentInventorySlots

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

the class PackageDesigner method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ExtraTreeMachine.ComponentExtraTreeGUI(machine, ExtraTreesGUID.WOODWORKER);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    inventory.addSlot(DesignerSlots.ADHESIVE_SLOT, getSlotRL("polish")).setValidator(new SlotValidatorDesignAdhesive(this.type));
    inventory.addSlot(DesignerSlots.DESIGN_SLOT_1, getSlotRL("wood")).setValidator(new SlotValidatorDesignMaterial(this.type));
    inventory.addSlot(DesignerSlots.DESIGN_SLOT_2, getSlotRL("wood")).setValidator(new SlotValidatorDesignMaterial(this.type));
    new ComponentDesignerRecipe(machine, this.type);
}
Also used : ComponentDesignerRecipe(binnie.design.gui.ComponentDesignerRecipe) ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) SlotValidatorDesignAdhesive(binnie.design.gui.SlotValidatorDesignAdhesive) SlotValidatorDesignMaterial(binnie.design.gui.SlotValidatorDesignMaterial)

Example 5 with ComponentInventorySlots

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

the class PackageLabMachine method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ComponentGUIHolder(machine);
    new LabFX(machine);
    ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    inventory.addSlot(0, new ResourceLocation(GENETICS_MOD_ID, "lab_display"));
}
Also used : ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ResourceLocation(net.minecraft.util.ResourceLocation)

Aggregations

ComponentInventorySlots (binnie.core.machines.inventory.ComponentInventorySlots)18 ComponentPowerReceptor (binnie.core.machines.power.ComponentPowerReceptor)14 InventorySlot (binnie.core.machines.inventory.InventorySlot)13 ComponentTankContainer (binnie.core.machines.inventory.ComponentTankContainer)10 ComponentInventoryTransfer (binnie.core.machines.inventory.ComponentInventoryTransfer)9 ComponentGeneticGUI (binnie.genetics.machine.ComponentGeneticGUI)9 SlotValidator (binnie.core.machines.inventory.SlotValidator)7 ComponentChargedSlots (binnie.core.machines.inventory.ComponentChargedSlots)5 TankSlot (binnie.core.machines.inventory.TankSlot)5 ResourceLocation (net.minecraft.util.ResourceLocation)3 IMachine (binnie.core.machines.IMachine)2 MachineUtil (binnie.core.machines.MachineUtil)2 ComponentDesignerRecipe (binnie.design.gui.ComponentDesignerRecipe)2 SlotValidatorDesignAdhesive (binnie.design.gui.SlotValidatorDesignAdhesive)2 SlotValidatorDesignMaterial (binnie.design.gui.SlotValidatorDesignMaterial)2 EthanolTankValidator (binnie.genetics.machine.EthanolTankValidator)2 ItemStack (net.minecraft.item.ItemStack)2 ComponentBotanyGUI (binnie.botany.machines.ComponentBotanyGUI)1 ManagerGenetics (binnie.core.genetics.ManagerGenetics)1 TankValidator (binnie.core.machines.inventory.TankValidator)1