Class IngredientCollectionHelpers

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

public class IngredientCollectionHelpers extends Object
  • Constructor Details Link icon

    • IngredientCollectionHelpers Link icon

      public IngredientCollectionHelpers()
  • Method Details Link icon

    • createCollapsedCollection Link icon

      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.