public class ShapelessRecipe extends Object implements CraftingRecipe
| Constructor and Description |
|---|
ShapelessRecipe(String recipeId,
int priority,
Item result,
Collection<Item> ingredients,
Identifier block) |
| Modifier and Type | Method and Description |
|---|---|
List<Item> |
getAllResults() |
Identifier |
getBlock() |
List<Item> |
getExtraResults() |
UUID |
getId() |
int |
getIngredientCount() |
List<Item> |
getIngredientList() |
int |
getPriority() |
String |
getRecipeId() |
Item |
getResult() |
RecipeType |
getType() |
boolean |
matchItems(Item[][] input,
Item[][] output)
Returns whether the specified list of crafting grid inputs and outputs matches this recipe.
|
void |
registerToCraftingManager(CraftingManager manager) |
boolean |
requiresCraftingTable() |
void |
setId(UUID id) |
com.nukkitx.protocol.bedrock.data.inventory.CraftingData |
toNetwork(int netId) |
public ShapelessRecipe(String recipeId, int priority, Item result, Collection<Item> ingredients, Identifier block)
public String getRecipeId()
getRecipeId in interface CraftingRecipepublic UUID getId()
getId in interface CraftingRecipepublic void setId(UUID id)
setId in interface CraftingRecipepublic int getIngredientCount()
public void registerToCraftingManager(CraftingManager manager)
registerToCraftingManager in interface Recipepublic RecipeType getType()
public boolean requiresCraftingTable()
requiresCraftingTable in interface CraftingRecipepublic List<Item> getExtraResults()
getExtraResults in interface CraftingRecipepublic List<Item> getAllResults()
getAllResults in interface CraftingRecipepublic int getPriority()
getPriority in interface CraftingRecipepublic boolean matchItems(Item[][] input, Item[][] output)
CraftingRecipematchItems in interface CraftingRecipeinput - 2D array of items taken from the crafting gridoutput - 2D array of items put back into the crafting grid (secondary results)public Identifier getBlock()
Copyright © 2020. All rights reserved.