Class IngredientComponentStorageWrapperHandlerChemicalStack<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<CHEMICAL,STACK,C>
All Implemented Interfaces:
org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageWrapperHandler<mekanism.api.chemical.ChemicalStack<?>,Integer,C>

public abstract class IngredientComponentStorageWrapperHandlerChemicalStack<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.IIngredientComponentStorageWrapperHandler<mekanism.api.chemical.ChemicalStack<?>,Integer,C>
Chemical storage wrapper handler for IChemicalHandler.
  • Constructor Details

    • IngredientComponentStorageWrapperHandlerChemicalStack

      public IngredientComponentStorageWrapperHandlerChemicalStack(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer> ingredientComponent, net.minecraftforge.common.capabilities.Capability<C> handlerCapability)
  • Method Details

    • simulateToChemicalAction

      public static mekanism.api.Action simulateToChemicalAction(boolean simulate)
    • chemicalActionToSimulate

      public static boolean chemicalActionToSimulate(mekanism.api.Action chemicalAction)
    • wrapComponentStorage

      public org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> wrapComponentStorage(C storage)
      Specified by:
      wrapComponentStorage in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageWrapperHandler<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>>
    • getStorage

      public net.minecraftforge.common.util.LazyOptional<C> getStorage(net.minecraftforge.common.capabilities.ICapabilityProvider capabilityProvider, @Nullable net.minecraft.core.Direction facing)
      Specified by:
      getStorage in interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageWrapperHandler<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>>
    • 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.IIngredientComponentStorageWrapperHandler<CHEMICAL extends mekanism.api.chemical.Chemical<CHEMICAL>,STACK extends mekanism.api.chemical.ChemicalStack<CHEMICAL>,C extends mekanism.api.chemical.IChemicalHandler<CHEMICAL,STACK>>