Package org.cloudburstmc.server.crafting
Class FurnaceRecipe
java.lang.Object
org.cloudburstmc.server.crafting.FurnaceRecipe
- All Implemented Interfaces:
org.cloudburstmc.api.crafting.Recipe,CraftingRecipe
author: MagicDroidX
Nukkit Project
-
Constructor Summary
ConstructorsConstructorDescriptionFurnaceRecipe(org.cloudburstmc.api.util.Identifier id, org.cloudburstmc.api.item.ItemStack result, org.cloudburstmc.api.item.ItemStack ingredient, org.cloudburstmc.api.util.Identifier block) -
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()org.cloudburstmc.api.item.ItemStackgetInput()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.booleancom.nukkitx.protocol.bedrock.data.inventory.CraftingDatatoNetwork(int netId)
-
Constructor Details
-
FurnaceRecipe
public FurnaceRecipe(org.cloudburstmc.api.util.Identifier id, org.cloudburstmc.api.item.ItemStack result, org.cloudburstmc.api.item.ItemStack ingredient, org.cloudburstmc.api.util.Identifier block)
-
-
Method Details
-
getInput
public org.cloudburstmc.api.item.ItemStack getInput() -
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
-
getType
public org.cloudburstmc.api.crafting.RecipeType getType()- Specified by:
getTypein interfaceorg.cloudburstmc.api.crafting.Recipe
-
getBlock
public org.cloudburstmc.api.util.Identifier getBlock()- Specified by:
getBlockin 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
-
toNetwork
public com.nukkitx.protocol.bedrock.data.inventory.CraftingData toNetwork(int netId) -
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
-