public void Craft(CraftingRecipe recipe) { if (recipe.MaterialsPresent(inventory)) { inventory = recipe.CraftFrom(inventory); AddToInventory(ItemRegistry.Instantiate(recipe.ProducesType)); } }