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