Class IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper
java.lang.Object
org.cyclops.integratedmekanism.ingredient.IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper
- All Implemented Interfaces:
Iterable<mekanism.api.chemical.ChemicalStack>,org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
- Enclosing class:
IngredientComponentStorageWrapperHandlerChemicalStack<C>
-
Constructor Summary
ConstructorsConstructorDescriptionComponentStorageWrapper(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack, Integer> ingredientComponent, mekanism.api.chemical.IChemicalHandler storage) -
Method Summary
Modifier and TypeMethodDescriptionmekanism.api.chemical.ChemicalStackextract(long maxQuantity, boolean simulate) mekanism.api.chemical.ChemicalStackorg.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack, Integer> longmekanism.api.chemical.ChemicalStackinsert(mekanism.api.chemical.ChemicalStack ingredient, boolean simulate) Iterator<mekanism.api.chemical.ChemicalStack> iterator()Iterator<mekanism.api.chemical.ChemicalStack> Methods 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
-
ComponentStorageWrapper
public ComponentStorageWrapper(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack, Integer> ingredientComponent, mekanism.api.chemical.IChemicalHandler storage)
-
-
Method Details
-
getComponent
public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack,Integer> getComponent()- Specified by:
getComponentin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-
iterator
-
iterator
public Iterator<mekanism.api.chemical.ChemicalStack> iterator(@Nonnull mekanism.api.chemical.ChemicalStack prototype, Integer matchFlags) - Specified by:
iteratorin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-
getMaxQuantity
public long getMaxQuantity()- Specified by:
getMaxQuantityin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-
insert
public mekanism.api.chemical.ChemicalStack insert(@Nonnull mekanism.api.chemical.ChemicalStack ingredient, boolean simulate) - Specified by:
insertin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-
extract
public mekanism.api.chemical.ChemicalStack extract(@Nonnull mekanism.api.chemical.ChemicalStack prototype, Integer matchFlags, boolean simulate) - Specified by:
extractin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-
extract
public mekanism.api.chemical.ChemicalStack extract(long maxQuantity, boolean simulate) - Specified by:
extractin interfaceorg.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
-