Class FurnaceRecipe

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

@Immutable public class FurnaceRecipe extends Object implements 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)
    Returns whether the specified list of crafting grid inputs and outputs matches this recipe.
    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 CraftingRecipe
    • getExtraResults

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

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

      public int getPriority()
      Specified by:
      getPriority in interface 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)
      Description copied from interface: CraftingRecipe
      Returns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT include the primary result item.
      Specified by:
      matchItems in interface CraftingRecipe
      Parameters:
      input - 2D array of items taken from the crafting grid
      output - 2D array of items put back into the crafting grid (secondary results)
      Returns:
      bool