Class TerminalCraftingPlanStatic.IndexedEntries
java.lang.Object
org.cyclops.integratedterminals.api.terminalstorage.crafting.TerminalCraftingPlanStatic.IndexedEntries
- Enclosing class:
- TerminalCraftingPlanStatic<I>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Get (or create) the entry corresponding to the given list of alternative ingredients.protected List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> getPrototypes(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Build a canonical list of prototype ingredients for the given alternatives.static longgetQuantity(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Get the quantity associated with the given alternatives list.
-
Constructor Details
-
IndexedEntries
public IndexedEntries()
-
-
Method Details
-
get
public TerminalCraftingPlanFlatStatic.Entry get(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Get (or create) the entry corresponding to the given list of alternative ingredients.- Parameters:
prototypedIngredients- A non-empty list of alternatives.- Returns:
- The corresponding flat plan entry.
-
getPrototypes
protected List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> getPrototypes(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Build a canonical list of prototype ingredients for the given alternatives. Quantities are normalized to 1 and the exact-match-no-quantity condition is used. -
getQuantity
public static long getQuantity(List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?, ?>> prototypedIngredients) Get the quantity associated with the given alternatives list.This is derived from the first element, which is consistent with prior behaviour when only a single prototype was available.
-
getEntries
-