Package cn.nukkit.inventory
Interface CraftingRecipe
- All Superinterfaces:
Recipe
- All Known Implementing Classes:
CartographyRecipe
,ShapedRecipe
,ShapelessRecipe
,ShulkerBoxRecipe
,SmithingRecipe
- Author:
- CreeperFace
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
int
boolean
matchItems
(List<Item> inputList, List<Item> extraOutputList) Returns whether the specified list of crafting grid inputs and outputs matches this recipe.boolean
matchItems
(List<Item> inputList, List<Item> extraOutputList, int multiplier) boolean
void
Methods inherited from interface cn.nukkit.inventory.Recipe
getResult, getType, registerToCraftingManager
-
Method Details
-
getRecipeId
String getRecipeId() -
getId
UUID getId() -
setId
-
requiresCraftingTable
boolean requiresCraftingTable() -
getExtraResults
-
getAllResults
-
getPriority
int getPriority() -
matchItems
Returns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT include the primary result item.- Parameters:
inputList
- list of items taken from the crafting gridextraOutputList
- list of items put back into the crafting grid (secondary results)- Returns:
- bool
-
matchItems
-
getIngredientsAggregate
-