In that recipe you can set fuel item needs to this recipe and consumed after brewing.
More advanced version is:
Code (Text):
ItemStack ingredient = new ItemStack(Material.BLACK_DYE);
List<ItemStack> items = Arrays.asList(new ItemStack(Material.LEATHER_HELMET),
new ItemStack(Material.LEATHER_CHESTPLATE),
new ItemStack(Material.LEATHER_LEGGINGS),
new ItemStack(Material.LEATHER_BOOTS));
ItemStack fuel = new ItemStack(Material.COAL);
// First argument is ingredient item placed in top slot
// Second argument is a boolean to set if recipe need exact ingredient or only the same material type
// Third argument is list of items what can be placed in three bottom slots and in the end of brewing will be changed
// Fourth is the same as third but for items
// Fifth one represents custom fuel for that recipe
// Sixth argument is e boolean to set if fuel must be the same item or only the same material type
// And last is the brewing time, default value is 400
BrewingRecipe recipe = new BrewingRecipe(ingredient,false, items,false, fuel,false,400);
recipe.setFunction( pair -> {
// In here you can make all magic stuff with your recipe
// pair is the object what stores item what are changed with that recipe and brewery inventory if you want to check or change another stuff
// For example I make a recipe to dye leather armor with black dye
ItemStack item = pair.item();
if (item.getItemMeta() instanceof LeatherArmorMeta meta) {
meta.setColor(Color.BLACK);
item.setItemMeta(meta);
}
return item;
});
RecipesManager.addBrewingRecipe(recipe);