Search in sources :

Example 1 with ItemSourceList

use of gregtech.common.inventory.itemsource.ItemSourceList in project GregTech by GregTechCE.

the class MetaTileEntityWorkbench method createRecipeResolver.

private void createRecipeResolver() {
    this.recipeResolver = new CraftingRecipeResolver(getWorld(), craftingGrid, recipeMemory);
    this.recipeResolver.setItemsCrafted(itemsCrafted);
    ItemSourceList itemSourceList = this.recipeResolver.getItemSourceList();
    itemSourceList.addItemHandler(InventoryItemSource.direct(getWorld(), toolInventory, -2));
    itemSourceList.addItemHandler(InventoryItemSource.direct(getWorld(), internalInventory, -1));
    this.recipeResolver.checkNeighbourInventories(getPos());
}
Also used : ItemSourceList(gregtech.common.inventory.itemsource.ItemSourceList)

Aggregations

ItemSourceList (gregtech.common.inventory.itemsource.ItemSourceList)1