Class TerminalStorageTabIngredientComponentItemStackCraftingCommon
java.lang.Object
org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentCommon<net.minecraft.world.item.ItemStack,Integer>
org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentItemStackCraftingCommon
- All Implemented Interfaces:
org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidator,ITerminalStorageTabCommon
public class TerminalStorageTabIngredientComponentItemStackCraftingCommon
extends TerminalStorageTabIngredientComponentCommon<net.minecraft.world.item.ItemStack,Integer>
A common-side storage terminal ingredient tab for crafting with
ItemStack instances.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integratedterminals.api.terminalstorage.ITerminalStorageTabCommon
ITerminalStorageTabCommon.ISlotPositionCallback, ITerminalStorageTabCommon.IVariableInventory, ITerminalStorageTabCommon.SlotPositionFactors -
Field Summary
Fields inherited from class org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentCommon
ingredientComponent -
Constructor Summary
ConstructorsConstructorDescriptionTerminalStorageTabIngredientComponentItemStackCraftingCommon(ContainerTerminalStorageBase containerTerminalStorage, net.minecraft.resources.ResourceLocation name, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCraftingResultSlotIndex(net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.resources.ResourceLocation name) net.minecraft.world.inventory.CraftingContainernet.minecraft.world.inventory.ResultContainernet.minecraft.world.inventory.ResultSlotList<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.inventory.Slot,ITerminalStorageTabCommon.ISlotPositionCallback>> loadSlots(net.minecraft.world.inventory.AbstractContainerMenu container, int startIndex, net.minecraft.world.entity.player.Player player, Optional<ITerminalStorageTabCommon.IVariableInventory> variableInventoryOptional, org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext valueDeseralizationContext) voidvoidupdateCraftingResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu container, ITerminalStorageTabCommon.IVariableInventory variableInventory) Methods inherited from class org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentCommon
addError, clearGlobalErrors, getGlobalErrors, getLocalErrors, getName, getVariableSlotNumberEnd, getVariableSlotNumberStart, hasErrors, onUpdate, setLocalErrors
-
Constructor Details
-
TerminalStorageTabIngredientComponentItemStackCraftingCommon
public TerminalStorageTabIngredientComponentItemStackCraftingCommon(ContainerTerminalStorageBase containerTerminalStorage, net.minecraft.resources.ResourceLocation name, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent)
-
-
Method Details
-
getCraftingResultSlotIndex
public static int getCraftingResultSlotIndex(net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.resources.ResourceLocation name) -
loadSlots
public List<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.inventory.Slot,ITerminalStorageTabCommon.ISlotPositionCallback>> loadSlots(net.minecraft.world.inventory.AbstractContainerMenu container, int startIndex, net.minecraft.world.entity.player.Player player, Optional<ITerminalStorageTabCommon.IVariableInventory> variableInventoryOptional, org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext valueDeseralizationContext) - Specified by:
loadSlotsin interfaceITerminalStorageTabCommon- Overrides:
loadSlotsin classTerminalStorageTabIngredientComponentCommon<net.minecraft.world.item.ItemStack,Integer>
-
getInventoryCrafting
public net.minecraft.world.inventory.CraftingContainer getInventoryCrafting() -
getInventoryCraftResult
public net.minecraft.world.inventory.ResultContainer getInventoryCraftResult() -
getSlotCrafting
public net.minecraft.world.inventory.ResultSlot getSlotCrafting() -
getAutoRefill
-
setAutoRefill
-
updateCraftingResult
public void updateCraftingResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu container, ITerminalStorageTabCommon.IVariableInventory variableInventory)
-