public interface SmeltingRecipeRegistry extends RecipeRegistry<SmeltingRecipe>
| Modifier and Type | Method and Description |
|---|---|
Optional<SmeltingRecipe> |
findMatchingRecipe(ItemStackSnapshot ingredient)
Retrieves the recipe used when smelting the given ingredient.
|
default Optional<SmeltingResult> |
getResult(ItemStackSnapshot ingredient)
Finds the matching recipe and creates the
SmeltingResult,
which is then returned. |
getRecipes, registergetAll, getByIdregisterDefaultsOptional<SmeltingRecipe> findMatchingRecipe(ItemStackSnapshot ingredient)
ingredient - The ingredient to check againstSmeltingRecipe, or Optional.empty()
if no recipe was found for this ItemStackSnapshotdefault Optional<SmeltingResult> getResult(ItemStackSnapshot ingredient)
SmeltingResult,
which is then returned.ingredient - The ingredient to check againstSmeltingResult if a recipe was found, or
Optional.empty() if not