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>

public static class IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper extends Object implements org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComponentStorageWrapper(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack,Integer> ingredientComponent, mekanism.api.chemical.IChemicalHandler storage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    mekanism.api.chemical.ChemicalStack
    extract(long maxQuantity, boolean simulate)
     
    mekanism.api.chemical.ChemicalStack
    extract(mekanism.api.chemical.ChemicalStack prototype, Integer matchFlags, boolean simulate)
     
    org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack,Integer>
     
    long
     
    mekanism.api.chemical.ChemicalStack
    insert(mekanism.api.chemical.ChemicalStack ingredient, boolean simulate)
     
    Iterator<mekanism.api.chemical.ChemicalStack>
     
    Iterator<mekanism.api.chemical.ChemicalStack>
    iterator(mekanism.api.chemical.ChemicalStack prototype, Integer matchFlags)
     

    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

    • 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:
      getComponent in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
    • iterator

      public Iterator<mekanism.api.chemical.ChemicalStack> iterator()
      Specified by:
      iterator in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
      Specified by:
      iterator in interface Iterable<mekanism.api.chemical.ChemicalStack>
    • iterator

      public Iterator<mekanism.api.chemical.ChemicalStack> iterator(@Nonnull mekanism.api.chemical.ChemicalStack prototype, Integer matchFlags)
      Specified by:
      iterator in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
    • getMaxQuantity

      public long getMaxQuantity()
      Specified by:
      getMaxQuantity in interface org.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:
      insert in interface org.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:
      extract in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>
    • extract

      public mekanism.api.chemical.ChemicalStack extract(long maxQuantity, boolean simulate)
      Specified by:
      extract in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack,Integer>