package org.cyclops.integrateddynamics.core.ingredient;

import org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients;
import org.cyclops.commoncapabilities.api.ingredient.IngredientComponent;

import java.util.List;
import java.util.Set;

/**
 * A wrapper around ingredients.
 * @author rubensworks
 */
public class WrappedIngredients implements IMixedIngredients {

    private final IMixedIngredients ingredients;

    public WrappedIngredients(IMixedIngredients ingredients) {
        this.ingredients = ingredients;
    }

    @Override
    public Set<IngredientComponent<?, ?>> getComponents() {
        return ingredients.getComponents();
    }

    @Override
    public <T> List<T> getInstances(IngredientComponent<T, ?> ingredientComponent) {
        return ingredients.getInstances(ingredientComponent);
    }
}

@@ -822,11 +822,121 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public int compareTo(IMixedIngredients o) %7B%0A        return ingredients.compareTo(o);%0A    %7D
 %0A%7D%0A

Make WrappedIngredients implement Comparable interface