Blender

The Blender combines items together, resulting in a drink that restores food and saturation.

Vanilla Drinks

Removing Drinks

Remove matching blended drinks.

mods.cfm.Blender.remove(@Optional final String name, @Optional final IItemStack[] ingredients, @Optional final Integer food, @Optional final int[] colour);

// Remove drink named "Fruit Crush"
mods.cfm.Blender.remove("Fruit Crush");
// Remove drinks that require one carrot, one potato and one pumpkin pie to create
mods.cfm.Blender.remove(null, [<minecraft:carrot>,<minecraft:potato>,<minecraft:pumpkin_pie>]);
// Remove all drinks
mods.cfm.Blender.remove();

Adding Drinks

Add a blended drink. Currently, saturation and food value cannot be set independently.


mods.cfm.Blender.addDrink(@Nonnull final String name, @Nonnull final IItemStack[] ingredients, final int food, @Nonnull final int[] colour);

// Add a drink named "Watermelon Snow" that is coloured pink and restores 20 food and 20 saturation requiring 8 melon slices and 4 snowballs to craft
mods.cfm.Blender.addDrink("Watermelon Snow", [<minecraft:melon>.withAmount(8),<minecraft:snowball>.withAmount(4)], 20, [255,182,193]);