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>
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientComponentTerminalStorageHandlerChemicalStack
(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<mekanism.api.chemical.ChemicalStack<?>, Integer> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
getIcon()
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 interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
getIcon
public net.minecraft.world.item.ItemStack getIcon()- Specified by:
getIcon
in interfaceorg.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 interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
formatQuantity
- Specified by:
formatQuantity
in interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
isInstance
public boolean isInstance(net.minecraft.world.item.ItemStack itemStack) - Specified by:
isInstance
in interfaceorg.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 interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
getMaxQuantity
public long getMaxQuantity(net.minecraft.world.item.ItemStack itemStack) - Specified by:
getMaxQuantity
in interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
getInitialInstanceMovementQuantity
public int getInitialInstanceMovementQuantity()- Specified by:
getInitialInstanceMovementQuantity
in interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-
getIncrementalInstanceMovementQuantity
public int getIncrementalInstanceMovementQuantity()- Specified by:
getIncrementalInstanceMovementQuantity
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.cyclops.integratedterminals.api.ingredient.IIngredientComponentTerminalStorageHandler<mekanism.api.chemical.ChemicalStack<?>,
Integer>
-