Class IngredientChannelIndexed<T,M>
java.lang.Object
org.cyclops.integrateddynamics.core.network.IngredientChannelAdapter<T,M>
org.cyclops.integrateddynamics.core.network.IngredientChannelIndexed<T,M>
- Type Parameters:
T- The instance type.M- The matching condition parameter.
- All Implemented Interfaces:
Iterable<T>,org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,,M> INetworkIngredientsChannel<T,M>
An ingredient channel that exploits the network's index.
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientChannelIndexed(PositionedAddonsNetworkIngredients<T, M> network, int channel, IIngredientPositionsIndex<T, M> index) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()getMatchingPositions(T prototype, M matchFlags) iterator()Methods inherited from class org.cyclops.integrateddynamics.core.network.IngredientChannelAdapter
disableLimits, enableLimits, extract, extract, finalizeExtraction, findAllPositions, findMatchingPositions, findNonEmptyPositions, findNonFullPositions, getChannel, getComponent, getMaxQuantity, getNetwork, getPartPosIteratorData, insert, markStoragePositionChanged, savePartPosIteratorHandler, scheduleObservationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IngredientChannelIndexed
public IngredientChannelIndexed(PositionedAddonsNetworkIngredients<T, M> network, int channel, IIngredientPositionsIndex<T, M> index)
-
-
Method Details
-
getIndex
-
getNonFullPositions
- Specified by:
getNonFullPositionsin classIngredientChannelAdapter<T,M>
-
getAllPositions
- Specified by:
getAllPositionsin classIngredientChannelAdapter<T,M>
-
getNonEmptyPositions
- Specified by:
getNonEmptyPositionsin classIngredientChannelAdapter<T,M>
-
getMatchingPositions
- Specified by:
getMatchingPositionsin classIngredientChannelAdapter<T,M>
-
iterator
-
iterator
-