Class ContainerTerminalStorageItem

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
org.cyclops.cyclopscore.inventory.container.ContainerExtended
org.cyclops.cyclopscore.inventory.container.InventoryContainer
org.cyclops.integratedterminals.inventory.container.ContainerTerminalStorageBase<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>>
org.cyclops.integratedterminals.inventory.container.ContainerTerminalStorageItem
All Implemented Interfaces:
org.cyclops.cyclopscore.inventory.container.button.IContainerButtonClickAcceptorServer<org.cyclops.cyclopscore.inventory.container.ContainerExtended>, org.cyclops.cyclopscore.inventory.IValueNotifiable, org.cyclops.cyclopscore.inventory.IValueNotifier, org.cyclops.cyclopscore.persist.IDirtyMarkListener

public class ContainerTerminalStorageItem extends ContainerTerminalStorageBase<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>>
  • Constructor Details

    • ContainerTerminalStorageItem

      public ContainerTerminalStorageItem(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf packetBuffer)
    • ContainerTerminalStorageItem

      public ContainerTerminalStorageItem(int id, net.minecraft.world.entity.player.Inventory playerInventory, int itemIndex, net.minecraft.world.InteractionHand hand, Optional<ContainerTerminalStorageBase.InitTabData> initTabData, TerminalStorageState terminalStorageState)
    • ContainerTerminalStorageItem

      public ContainerTerminalStorageItem(@Nullable net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory, int itemIndex, net.minecraft.world.InteractionHand hand, Optional<ContainerTerminalStorageBase.InitTabData> initTabData, TerminalStorageState terminalStorageState)
  • Method Details

    • getNetworkFromItem

      public static Optional<org.cyclops.integrateddynamics.api.network.INetwork> getNetworkFromItem(net.minecraft.world.item.ItemStack itemStack)
    • getVariableInventoryFromItem

      public static Optional<ITerminalStorageTabCommon.IVariableInventory> getVariableInventoryFromItem(net.minecraft.world.item.ItemStack itemStack)
    • getItemStack

      public net.minecraft.world.item.ItemStack getItemStack(net.minecraft.world.entity.player.Player player)
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      stillValid in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • getLocation

      public ITerminalStorageLocation<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>> getLocation()
      Specified by:
      getLocation in class ContainerTerminalStorageBase<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>>
    • getLocationInstance

      public org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer> getLocationInstance()
      Specified by:
      getLocationInstance in class ContainerTerminalStorageBase<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>>
    • onVariableContentsUpdated

      public void onVariableContentsUpdated(org.cyclops.integrateddynamics.api.network.INetwork network, org.cyclops.integrateddynamics.api.evaluate.variable.IVariable<?> variable)
      Specified by:
      onVariableContentsUpdated in class ContainerTerminalStorageBase<org.apache.commons.lang3.tuple.Pair<net.minecraft.world.InteractionHand,Integer>>
    • createNewSlot

      protected net.minecraft.world.inventory.Slot createNewSlot(net.minecraft.world.Container inventory, int index, int x, int y)
      Overrides:
      createNewSlot in class org.cyclops.cyclopscore.inventory.container.ContainerExtended