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, register
getAll, getById
registerDefaults
Optional<SmeltingRecipe> findMatchingRecipe(ItemStackSnapshot ingredient)
ingredient
- The ingredient to check againstSmeltingRecipe
, or Optional.empty()
if no recipe was found for this ItemStackSnapshot
default 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