Interface ExportedRecipe
@Experimental
@NonExtendable
public interface ExportedRecipe
A previously exported recipe.
-
Method Summary
Modifier and TypeMethodDescriptionfields()Returns the JSON representation of this recipe converted back to a generic map.getIngredient(String fieldName) Convenience method to read an ingredient from the recipe, which was represented as a list of item ids.intReturns the number of result items produced by this recipe.Returns string representation of the result item of this recipe, usually an item id.type()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
-
getIngredient
-