Interface INetworkIngredientsChannel<T,M>
- All Superinterfaces:
org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,,M> Iterable<T>
- All Known Implementing Classes:
IngredientChannelAdapter,IngredientChannelIndexed,IngredientChannelPositioned
public interface INetworkIngredientsChannel<T,M>
extends org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,M>
-
Method Summary
Modifier and TypeMethodDescriptionfindMatchingPositions(T prototype, M matchFlags) default TInsert an ingredient of which a part was already claimed before it reached this channel.Methods inherited from interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage
extract, extract, getComponent, getMaxQuantity, insert, iterator, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
insert
Insert an ingredient of which a part was already claimed before it reached this channel. This is needed when an ingredient is first offered to an insert pre-consumer outside of this channel, so that the pre-consumers of this channel can not claim that same part a second time.- Parameters:
ingredient- The ingredient to insert.unclaimed- The part of the ingredient that no insert pre-consumer has claimed yet.simulate- If the insertion should be simulated.- Returns:
- The ingredient that could not be inserted.
-
findNonFullPositions
-
findAllPositions
-
findNonEmptyPositions
-
findMatchingPositions
-