public class ShapelessRecipe extends Object implements CraftingRecipe
| Constructor and Description |
|---|
ShapelessRecipe(org.cloudburstmc.api.util.Identifier recipeId,
int priority,
org.cloudburstmc.api.item.ItemStack result,
List<org.cloudburstmc.api.item.ItemStack> ingredients,
org.cloudburstmc.api.util.Identifier block) |
ShapelessRecipe(org.cloudburstmc.api.util.Identifier recipeId,
int priority,
List<org.cloudburstmc.api.item.ItemStack> outputs,
List<org.cloudburstmc.api.item.ItemStack> ingredients,
org.cloudburstmc.api.util.Identifier craftingBlock) |
| Modifier and Type | Method and Description |
|---|---|
List<org.cloudburstmc.api.item.ItemStack> |
getAllResults() |
org.cloudburstmc.api.util.Identifier |
getBlock() |
List<org.cloudburstmc.api.item.ItemStack> |
getExtraResults() |
org.cloudburstmc.api.util.Identifier |
getId() |
int |
getIngredientCount() |
List<org.cloudburstmc.api.item.ItemStack> |
getIngredientList() |
int |
getPriority() |
org.cloudburstmc.api.item.ItemStack |
getResult() |
org.cloudburstmc.api.inventory.RecipeType |
getType() |
boolean |
matchItems(org.cloudburstmc.api.item.ItemStack[][] input,
org.cloudburstmc.api.item.ItemStack[][] output)
Returns whether the specified list of crafting grid inputs and outputs matches this recipe.
|
boolean |
requiresCraftingTable() |
public ShapelessRecipe(org.cloudburstmc.api.util.Identifier recipeId,
int priority,
List<org.cloudburstmc.api.item.ItemStack> outputs,
List<org.cloudburstmc.api.item.ItemStack> ingredients,
org.cloudburstmc.api.util.Identifier craftingBlock)
public ShapelessRecipe(org.cloudburstmc.api.util.Identifier recipeId,
int priority,
org.cloudburstmc.api.item.ItemStack result,
List<org.cloudburstmc.api.item.ItemStack> ingredients,
org.cloudburstmc.api.util.Identifier block)
public org.cloudburstmc.api.util.Identifier getId()
getId in interface org.cloudburstmc.api.inventory.Recipepublic org.cloudburstmc.api.item.ItemStack getResult()
getResult in interface org.cloudburstmc.api.inventory.Recipepublic List<org.cloudburstmc.api.item.ItemStack> getIngredientList()
public int getIngredientCount()
public org.cloudburstmc.api.inventory.RecipeType getType()
getType in interface org.cloudburstmc.api.inventory.Recipepublic boolean requiresCraftingTable()
requiresCraftingTable in interface CraftingRecipepublic List<org.cloudburstmc.api.item.ItemStack> getExtraResults()
getExtraResults in interface CraftingRecipepublic List<org.cloudburstmc.api.item.ItemStack> getAllResults()
getAllResults in interface CraftingRecipepublic int getPriority()
getPriority in interface CraftingRecipepublic boolean matchItems(org.cloudburstmc.api.item.ItemStack[][] input,
org.cloudburstmc.api.item.ItemStack[][] 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 org.cloudburstmc.api.util.Identifier getBlock()
getBlock in interface org.cloudburstmc.api.inventory.RecipeCopyright © 2021. All rights reserved.