Interface ExportedRecipe


@Experimental @NonExtendable public interface ExportedRecipe
A previously exported recipe.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the JSON representation of this recipe converted back to a generic map.
    default List<String>
    getIngredient(String fieldName)
    Convenience method to read an ingredient from the recipe, which was represented as a list of item ids.
    int
    Returns the number of result items produced by this recipe.
    Returns string representation of the result item of this recipe, usually an item id.
    The string representation of the recipe types key, i.e.
  • Method Details

    • type

      String type()
      The string representation of the recipe types key, i.e. minecraft:crafting.
    • resultItem

      String resultItem()
      Returns string representation of the result item of this recipe, usually an item id.
      Returns:
      string representation of the result item of this recipe, usually an item id
    • resultCount

      int resultCount()
      Returns the number of result items produced by this recipe.
      Returns:
      the number of result items produced by this recipe
    • fields

      Map<String,Object> fields()
      Returns the JSON representation of this recipe converted back to a generic map.
      Returns:
      the JSON representation of this recipe converted back to a generic map
    • getIngredient

      default List<String> getIngredient(String fieldName)
      Convenience method to read an ingredient from the recipe, which was represented as a list of item ids.