Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2296

Recipe.fromArray() Method

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      A new method for Recipe objects to get a Recipe from an ArrayList of ItemStacks. The position of the ItemStack in the Array would correlate to the position of the ItemStack in the Recipe's shape.

      For Shaped vs Shapeless Recipes, could either:

      • Use ShapedRecipe.fromArray() and ShaplessRecipe.fromArray()
        or
      • Use Recipe.fromArray() and match ShapedRecipe first. If no ShapedRecipe matches, try to match a ShapelessRecipe.

            Unassigned Unassigned
            BlackBeltPanda BlackBeltPanda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: