Class FurnaceRecipe

java.lang.Object
org.cloudburstmc.server.crafting.FurnaceRecipe
All Implemented Interfaces:
org.cloudburstmc.api.crafting.CraftingRecipe, org.cloudburstmc.api.crafting.Recipe

@Immutable public class FurnaceRecipe extends Object implements org.cloudburstmc.api.crafting.CraftingRecipe
author: MagicDroidX Nukkit Project
  • Constructor Summary

    Constructors
    Constructor
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.cloudburstmc.api.item.ItemStack>
     
    org.cloudburstmc.api.util.Identifier
     
    List<org.cloudburstmc.api.item.ItemStack>
     
    org.cloudburstmc.api.util.Identifier
     
    org.cloudburstmc.api.item.ItemStack
     
    int
     
    org.cloudburstmc.api.item.ItemStack
     
    org.cloudburstmc.api.crafting.RecipeType
     
    boolean
    matchItems​(org.cloudburstmc.api.item.ItemStack[][] input, org.cloudburstmc.api.item.ItemStack[][] output)
     
    boolean
     
    com.nukkitx.protocol.bedrock.data.inventory.CraftingData
    toNetwork​(int netId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getId in interface org.cloudburstmc.api.crafting.Recipe
    • getResult

      public org.cloudburstmc.api.item.ItemStack getResult()
      Specified by:
      getResult in interface org.cloudburstmc.api.crafting.Recipe
    • getType

      public org.cloudburstmc.api.crafting.RecipeType getType()
      Specified by:
      getType in interface org.cloudburstmc.api.crafting.Recipe
    • getBlock

      public org.cloudburstmc.api.util.Identifier getBlock()
      Specified by:
      getBlock in interface org.cloudburstmc.api.crafting.Recipe
    • requiresCraftingTable

      public boolean requiresCraftingTable()
      Specified by:
      requiresCraftingTable in interface org.cloudburstmc.api.crafting.CraftingRecipe
    • getExtraResults

      public List<org.cloudburstmc.api.item.ItemStack> getExtraResults()
      Specified by:
      getExtraResults in interface org.cloudburstmc.api.crafting.CraftingRecipe
    • getAllResults

      public List<org.cloudburstmc.api.item.ItemStack> getAllResults()
      Specified by:
      getAllResults in interface org.cloudburstmc.api.crafting.CraftingRecipe
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.cloudburstmc.api.crafting.CraftingRecipe
    • 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)
      Specified by:
      matchItems in interface org.cloudburstmc.api.crafting.CraftingRecipe