Interface ShapelessRecipe

All Superinterfaces:
CraftingRecipe, Recipe

@NonExtendable public interface ShapelessRecipe extends CraftingRecipe
A recipe whose ingredients may sit anywhere in the grid, in any order.

The grid must hold exactly one non-empty slot per ingredient. Each slot is paired with one ingredient that accepts it, then gives up that ingredient's count.

Since:
0.1.0
  • Field Details

    • MAX_INGREDIENTS

      static final int MAX_INGREDIENTS
      The most ingredients a recipe can list, one per slot of a crafting table.
      Since:
      0.1.0
      See Also:
  • Method Details

    • builder

      static ShapelessRecipe.Builder builder(Key key)
      Parameters:
      key - the identifier of the recipe
      Returns:
      a builder for a shapeless recipe
      Since:
      0.1.0
    • ingredients

      List<Ingredient> ingredients()
      Returns:
      the ingredients, one per non-empty slot the grid must hold
      Since:
      0.1.0
    • result

      ItemStack result()
      Returns:
      what one craft gives
      Since:
      0.1.0