Class TerminalStorageTabIngredientComponentCommon<T,M>

java.lang.Object
org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentCommon<T,M>
Type Parameters:
T - The instance type.
M - The matching condition parameter.
All Implemented Interfaces:
org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidator, ITerminalStorageTabCommon
Direct Known Subclasses:
TerminalStorageTabIngredientComponentItemStackCraftingCommon

public class TerminalStorageTabIngredientComponentCommon<T,M> extends Object implements ITerminalStorageTabCommon, org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidator
A common storage terminal ingredient tab.
  • Field Details

    • ingredientComponent

      protected final org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent
  • Constructor Details

    • TerminalStorageTabIngredientComponentCommon

      public TerminalStorageTabIngredientComponentCommon(ContainerTerminalStorageBase containerTerminalStorage, net.minecraft.resources.ResourceLocation name, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent)
  • Method Details

    • getName

      public net.minecraft.resources.ResourceLocation getName()
      Specified by:
      getName in interface ITerminalStorageTabCommon
      Returns:
      The unique tab name, as inherited from ITerminalStorageTab.getName().
    • 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)
      Specified by:
      loadSlots in interface ITerminalStorageTabCommon
    • getVariableSlotNumberStart

      public int getVariableSlotNumberStart()
    • getVariableSlotNumberEnd

      public int getVariableSlotNumberEnd()
    • onUpdate

      public void onUpdate(net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.world.entity.player.Player player, Optional<ITerminalStorageTabCommon.IVariableInventory> variableInventory)
      Specified by:
      onUpdate in interface ITerminalStorageTabCommon
    • addError

      public void addError(net.minecraft.network.chat.MutableComponent error)
      Specified by:
      addError in interface org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidator
    • getGlobalErrors

      public List<net.minecraft.network.chat.Component> getGlobalErrors()
    • clearGlobalErrors

      public void clearGlobalErrors()
    • setLocalErrors

      public void setLocalErrors(int slot, List<net.minecraft.network.chat.MutableComponent> errors)
    • getLocalErrors

      public List<net.minecraft.network.chat.Component> getLocalErrors(int slot)
    • hasErrors

      public boolean hasErrors()