Search in sources :

Example 1 with ComponentBotanyGUI

use of binnie.botany.machines.ComponentBotanyGUI 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

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