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
ConstructorDescriptionIngredientChannelIndexed
(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, scheduleObservation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getNonFullPositions
in classIngredientChannelAdapter<T,
M>
-
getAllPositions
- Specified by:
getAllPositions
in classIngredientChannelAdapter<T,
M>
-
getNonEmptyPositions
- Specified by:
getNonEmptyPositions
in classIngredientChannelAdapter<T,
M>
-
getMatchingPositions
- Specified by:
getMatchingPositions
in classIngredientChannelAdapter<T,
M>
-
iterator
-
iterator
-