Class IngredientComponentTerminalStorageHandlerChemicalStack

java.lang.Object
org.cyclops.integratedmekanismics.modcompat.integratedterminals.IngredientComponentTerminalStorageHandlerChemicalStack
All Implemented Interfaces:
org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>

public class IngredientComponentTerminalStorageHandlerChemicalStack extends Object implements org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    drainActivePlayerStackQuantity(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.AbstractContainerMenu container, long quantityIn)
     
    void
    drawInstance(net.minecraft.client.gui.GuiGraphics guiGraphics, mekanism.api.chemical.ChemicalStack<?> instance, long maxQuantity, String label, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen gui, org.cyclops.integratedterminals.client.gui.container.ContainerScreenTerminalStorage.DrawLayer layer, float partialTick, int x, int y, int mouseX, int mouseY, List<net.minecraft.network.chat.Component> additionalTooltipLines)
     
    void
    extractActiveStackFromPlayerInventory(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.world.entity.player.Inventory playerInventory, long moveQuantityPlayerSlot)
     
    void
    extractMaxFromContainerSlot(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, int containerSlot, net.minecraft.world.entity.player.Inventory playerInventory, int limit)
     
    formatQuantity(mekanism.api.chemical.ChemicalStack<?> instance)
     
    long
    getActivePlayerStackQuantity(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.AbstractContainerMenu container)
     
    protected org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer>
    getChemicalStorage(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer> component, mekanism.api.chemical.IChemicalHandler<?,?> chemicalHandler)
     
    org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer>
     
    net.minecraft.world.item.ItemStack
     
    int
     
    int
     
    mekanism.api.chemical.ChemicalStack<?>
    getInstance(net.minecraft.world.item.ItemStack itemStack)
     
    Predicate<mekanism.api.chemical.ChemicalStack<?>>
    getInstanceFilterPredicate(org.cyclops.integratedterminals.core.terminalstorage.query.SearchMode searchMode, String query)
     
    Collection<org.cyclops.integratedterminals.api.ingredient.IIngredientInstanceSorter<mekanism.api.chemical.ChemicalStack<?>>>
     
    long
    getMaxQuantity(net.minecraft.world.item.ItemStack itemStack)
     
    mekanism.api.chemical.ChemicalStack<?>
    insertIntoContainer(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, int containerSlot, mekanism.api.chemical.ChemicalStack<?> maxInstance, @Nullable net.minecraft.world.entity.player.Player player, boolean transferFullSelection)
     
    boolean
    isInstance(net.minecraft.world.item.ItemStack itemStack)
     
    int
    throwIntoWorld(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, mekanism.api.chemical.ChemicalStack<?> chemicalStack, net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler

    addQuantityTooltip, insertMaxIntoContainer
  • Constructor Details

    • IngredientComponentTerminalStorageHandlerChemicalStack

      public IngredientComponentTerminalStorageHandlerChemicalStack(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer> ingredientComponent)
  • Method Details

    • getComponent

      public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer> getComponent()
      Specified by:
      getComponent in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getIcon

      public net.minecraft.world.item.ItemStack getIcon()
      Specified by:
      getIcon in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • drawInstance

      public void drawInstance(net.minecraft.client.gui.GuiGraphics guiGraphics, mekanism.api.chemical.ChemicalStack<?> instance, long maxQuantity, @Nullable String label, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen gui, org.cyclops.integratedterminals.client.gui.container.ContainerScreenTerminalStorage.DrawLayer layer, float partialTick, int x, int y, int mouseX, int mouseY, @Nullable List<net.minecraft.network.chat.Component> additionalTooltipLines)
      Specified by:
      drawInstance in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • formatQuantity

      public String formatQuantity(mekanism.api.chemical.ChemicalStack<?> instance)
      Specified by:
      formatQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • isInstance

      public boolean isInstance(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      isInstance in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getInstance

      public mekanism.api.chemical.ChemicalStack<?> getInstance(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      getInstance in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getMaxQuantity

      public long getMaxQuantity(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      getMaxQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getInitialInstanceMovementQuantity

      public int getInitialInstanceMovementQuantity()
      Specified by:
      getInitialInstanceMovementQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getIncrementalInstanceMovementQuantity

      public int getIncrementalInstanceMovementQuantity()
      Specified by:
      getIncrementalInstanceMovementQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • throwIntoWorld

      public int throwIntoWorld(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, mekanism.api.chemical.ChemicalStack<?> chemicalStack, net.minecraft.world.entity.player.Player player)
      Specified by:
      throwIntoWorld in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getChemicalStorage

      protected org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> getChemicalStorage(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>,Integer> component, mekanism.api.chemical.IChemicalHandler<?,?> chemicalHandler)
    • insertIntoContainer

      public mekanism.api.chemical.ChemicalStack<?> insertIntoContainer(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, int containerSlot, mekanism.api.chemical.ChemicalStack<?> maxInstance, @Nullable @Nullable net.minecraft.world.entity.player.Player player, boolean transferFullSelection)
      Specified by:
      insertIntoContainer in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • extractActiveStackFromPlayerInventory

      public void extractActiveStackFromPlayerInventory(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.world.entity.player.Inventory playerInventory, long moveQuantityPlayerSlot)
      Specified by:
      extractActiveStackFromPlayerInventory in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • extractMaxFromContainerSlot

      public void extractMaxFromContainerSlot(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<mekanism.api.chemical.ChemicalStack<?>,Integer> storage, net.minecraft.world.inventory.AbstractContainerMenu container, int containerSlot, net.minecraft.world.entity.player.Inventory playerInventory, int limit)
      Specified by:
      extractMaxFromContainerSlot in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getActivePlayerStackQuantity

      public long getActivePlayerStackQuantity(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.AbstractContainerMenu container)
      Specified by:
      getActivePlayerStackQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • drainActivePlayerStackQuantity

      public void drainActivePlayerStackQuantity(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.AbstractContainerMenu container, long quantityIn)
      Specified by:
      drainActivePlayerStackQuantity in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getInstanceFilterPredicate

      public Predicate<mekanism.api.chemical.ChemicalStack<?>> getInstanceFilterPredicate(org.cyclops.integratedterminals.core.terminalstorage.query.SearchMode searchMode, String query)
      Specified by:
      getInstanceFilterPredicate in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>
    • getInstanceSorters

      public Collection<org.cyclops.integratedterminals.api.ingredient.IIngredientInstanceSorter<mekanism.api.chemical.ChemicalStack<?>>> getInstanceSorters()
      Specified by:
      getInstanceSorters in interface org.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,Integer>