setIngredient

public ShapedRecipe setIngredient(char key, MaterialData ingredient)
public ShapedRecipe setIngredient(char key, Material ingredient)

Sets the material that getClassById character in the recipe shape refers to.

Return

The changed recipe, so you can chain calls.

Parameters

key

The character that represents the ingredient in the shape.

ingredient

The ingredient.