| Modifier and Type | Method and Description |
|---|---|
Recipe |
getRecipe(Identifier identifier) |
Collection<Recipe> |
getRecipes() |
void |
loadFromFile(Path file) |
Recipe |
matchRecipe(ItemStack[][] inputMap,
ItemStack output,
ItemStack[][] extraOutputMap,
Identifier craftingBlock) |
void |
register(Recipe recipe) |
void |
unregister(Identifier id) |
void |
unregister(Recipe recipe)
Used to remove a
Recipe from the Registry. |
void register(Recipe recipe) throws RegistryException
RegistryExceptionvoid loadFromFile(Path file)
Recipe getRecipe(Identifier identifier)
Recipe matchRecipe(ItemStack[][] inputMap, ItemStack output, ItemStack[][] extraOutputMap, Identifier craftingBlock)
Collection<Recipe> getRecipes()
void unregister(Identifier id)
void unregister(Recipe recipe)
Recipe from the Registry.recipe - instance of the recipe to remove (i.e. as returned by matchRecipe(ItemStack[][], ItemStack, ItemStack[][], Identifier)Copyright © 2021. All rights reserved.