- All Superinterfaces:
Registry
-
Method Summary
Modifier and TypeMethodDescriptiongetRecipe(Identifier identifier)voidloadFromFile(Path file)matchRecipe(ItemStack[][] inputMap, ItemStack output, ItemStack[][] extraOutputMap, Identifier craftingBlock)voidvoidunregister(Recipe recipe)Used to remove aRecipefrom the Registry.voidunregister(Identifier id)
-
Method Details
-
register
- Throws:
RegistryException
-
loadFromFile
-
getRecipe
-
matchRecipe
Recipe matchRecipe(ItemStack[][] inputMap, ItemStack output, ItemStack[][] extraOutputMap, Identifier craftingBlock) -
getRecipes
Collection<Recipe> getRecipes() -
unregister
-
unregister
Used to remove aRecipefrom the Registry.- Parameters:
recipe- instance of the recipe to remove (i.e. as returned bymatchRecipe(ItemStack[][], ItemStack, ItemStack[][], Identifier)
-