Class IngredientCollectionHelpers

java.lang.Object
org.cyclops.cyclopscore.ingredient.collection.IngredientCollectionHelpers

public class IngredientCollectionHelpers extends Object
  • Constructor Details

    • IngredientCollectionHelpers

      public IngredientCollectionHelpers()
  • Method Details

    • createCollapsedCollection

      public static <T, M> IIngredientCollapsedCollectionMutable<T,M> createCollapsedCollection(IngredientComponent<T,M> ingredientComponent)
      Create a new collapsed collection for the given ingredient component. This collection will not be able to store negative quantities.
      Type Parameters:
      T - The instance type.
      M - The matching condition parameter.
      Parameters:
      ingredientComponent - An ingredient component.
      Returns:
      A mutable collapsed ingredient collection.