Class MultiRecipe

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

public class MultiRecipe extends Object implements CraftingRecipe
  • Constructor Details

    • MultiRecipe

      public MultiRecipe(org.cloudburstmc.api.util.Identifier id, UUID uuid)
  • Method Details

    • 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<? extends org.cloudburstmc.api.item.ItemStack> getExtraResults()
      Specified by:
      getExtraResults in interface CraftingRecipe
    • getAllResults

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

      public int getPriority()
      Specified by:
      getPriority in interface CraftingRecipe
    • 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