@Immutable public class FurnaceRecipe extends Object implements CraftingRecipe
| Constructor and Description |
|---|
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) |
| 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() |
org.cloudburstmc.api.item.ItemStack |
getInput() |
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() |
com.nukkitx.protocol.bedrock.data.inventory.CraftingData |
toNetwork(int netId) |
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)
public org.cloudburstmc.api.item.ItemStack getInput()
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 org.cloudburstmc.api.inventory.RecipeType getType()
getType in interface org.cloudburstmc.api.inventory.Recipepublic org.cloudburstmc.api.util.Identifier getBlock()
getBlock 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 com.nukkitx.protocol.bedrock.data.inventory.CraftingData toNetwork(int netId)
public 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)Copyright © 2021. All rights reserved.