Class IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>>

java.lang.Object
org.cyclops.integratedmekanismics.ingredient.IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper<CHEMICAL,STACK,C>
All Implemented Interfaces:
Iterable<STACK>, org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<STACK,Integer>
Enclosing class:
IngredientComponentStorageWrapperHandlerChemicalStack<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>>

public static class IngredientComponentStorageWrapperHandlerChemicalStack.ComponentStorageWrapper<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>> extends Object implements org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<STACK,Integer>
  • Constructor Details

    • ComponentStorageWrapper

      public ComponentStorageWrapper(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<STACK,Integer> ingredientComponent, C storage)
  • Method Details

    • getComponent

      public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<STACK,Integer> getComponent()
      Specified by:
      getComponent in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>>
    • iterator

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

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

      public long getMaxQuantity()
      Specified by:
      getMaxQuantity in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>>
    • insert

      public STACK insert(@Nonnull STACK ingredient, boolean simulate)
      Specified by:
      insert in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>>
    • extract

      public STACK extract(@Nonnull STACK prototype, Integer matchFlags, boolean simulate)
      Specified by:
      extract in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>>
    • extract

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