Package org.cloudburstmc.server.crafting
Class ShapelessRecipe
java.lang.Object
org.cloudburstmc.server.crafting.ShapelessRecipe
- All Implemented Interfaces:
org.cloudburstmc.api.crafting.Recipe,CraftingRecipe
author: MagicDroidX
Nukkit Project
-
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe(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, org.cloudburstmc.api.crafting.RecipeType type) -
Method Summary
Modifier and TypeMethodDescriptionList<org.cloudburstmc.api.item.ItemStack>org.cloudburstmc.api.util.IdentifiergetBlock()List<org.cloudburstmc.api.item.ItemStack>org.cloudburstmc.api.util.IdentifiergetId()intList<org.cloudburstmc.api.item.ItemStack>intorg.cloudburstmc.api.item.ItemStackorg.cloudburstmc.api.crafting.RecipeTypegetType()booleanmatchItems(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
-
Constructor Details
-
ShapelessRecipe
-
-
Method Details
-
getId
public org.cloudburstmc.api.util.Identifier getId()- Specified by:
getIdin interfaceorg.cloudburstmc.api.crafting.Recipe
-
getResult
public org.cloudburstmc.api.item.ItemStack getResult()- Specified by:
getResultin interfaceorg.cloudburstmc.api.crafting.Recipe
-
getIngredientList
-
getIngredientCount
public int getIngredientCount() -
getType
public org.cloudburstmc.api.crafting.RecipeType getType()- Specified by:
getTypein interfaceorg.cloudburstmc.api.crafting.Recipe
-
requiresCraftingTable
public boolean requiresCraftingTable()- Specified by:
requiresCraftingTablein interfaceCraftingRecipe
-
getExtraResults
- Specified by:
getExtraResultsin interfaceCraftingRecipe
-
getAllResults
- Specified by:
getAllResultsin interfaceCraftingRecipe
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceCraftingRecipe
-
matchItems
public boolean matchItems(org.cloudburstmc.api.item.ItemStack[][] input, org.cloudburstmc.api.item.ItemStack[][] output)Description copied from interface:CraftingRecipeReturns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT include the primary result item.- Specified by:
matchItemsin interfaceCraftingRecipe- Parameters:
input- 2D array of items taken from the crafting gridoutput- 2D array of items put back into the crafting grid (secondary results)- Returns:
- bool
-
getBlock
public org.cloudburstmc.api.util.Identifier getBlock()- Specified by:
getBlockin interfaceorg.cloudburstmc.api.crafting.Recipe
-