Search in sources :

Example 1 with SlotValidatorDesignMaterial

use of binnie.design.gui.SlotValidatorDesignMaterial 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 2 with SlotValidatorDesignMaterial

use of binnie.design.gui.SlotValidatorDesignMaterial in project Binnie by ForestryMC.

the class PackageDesigner method createMachine.

@Override
public void createMachine(final Machine machine) {
    new ComponentBotanyGUI(machine, BotanyGUI.TILEWORKER);
    final ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
    InventorySlot mortarSlot = inventory.addSlot(DesignerSlots.ADHESIVE_SLOT, new ResourceLocation(Constants.BOTANY_MOD_ID, "gui.slot.mortar"));
    mortarSlot.setValidator(new SlotValidatorDesignAdhesive(this.type));
    InventorySlot ceramicSlot1 = inventory.addSlot(DesignerSlots.DESIGN_SLOT_1, new ResourceLocation(Constants.BOTANY_MOD_ID, "gui.slot.ceramic"));
    ceramicSlot1.setValidator(new SlotValidatorDesignMaterial(this.type));
    InventorySlot ceramicSlot2 = inventory.addSlot(DesignerSlots.DESIGN_SLOT_2, new ResourceLocation(Constants.BOTANY_MOD_ID, "gui.slot.ceramic"));
    ceramicSlot2.setValidator(new SlotValidatorDesignMaterial(this.type));
    new ComponentDesignerRecipe(machine, this.type);
}
Also used : ComponentDesignerRecipe(binnie.design.gui.ComponentDesignerRecipe) ComponentInventorySlots(binnie.core.machines.inventory.ComponentInventorySlots) ComponentBotanyGUI(binnie.botany.machines.ComponentBotanyGUI) ResourceLocation(net.minecraft.util.ResourceLocation) InventorySlot(binnie.core.machines.inventory.InventorySlot) SlotValidatorDesignAdhesive(binnie.design.gui.SlotValidatorDesignAdhesive) SlotValidatorDesignMaterial(binnie.design.gui.SlotValidatorDesignMaterial)

Aggregations

ComponentInventorySlots (binnie.core.machines.inventory.ComponentInventorySlots)2 ComponentDesignerRecipe (binnie.design.gui.ComponentDesignerRecipe)2 SlotValidatorDesignAdhesive (binnie.design.gui.SlotValidatorDesignAdhesive)2 SlotValidatorDesignMaterial (binnie.design.gui.SlotValidatorDesignMaterial)2 ComponentBotanyGUI (binnie.botany.machines.ComponentBotanyGUI)1 InventorySlot (binnie.core.machines.inventory.InventorySlot)1 ResourceLocation (net.minecraft.util.ResourceLocation)1