Class LinkedControllerContainer

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.container.ContainerBase<T>
com.simibubi.create.foundation.gui.container.GhostItemContainer<net.minecraft.world.item.ItemStack>
com.simibubi.create.content.logistics.item.LinkedControllerContainer
All Implemented Interfaces:
IClearableContainer

public class LinkedControllerContainer extends GhostItemContainer<net.minecraft.world.item.ItemStack>
  • Field Summary

    Fields inherited from class com.simibubi.create.foundation.gui.container.GhostItemContainer

    ghostInventory

    Fields inherited from class com.simibubi.create.foundation.gui.container.ContainerBase

    contentHolder, player, playerInventory

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    LinkedControllerContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData)
     
    LinkedControllerContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack filterItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     
    void
    clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player)
     
    create(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack filterItem)
     
    protected net.minecraftforge.items.ItemStackHandler
     
    protected net.minecraft.world.item.ItemStack
    createOnClient(net.minecraft.network.FriendlyByteBuf extraData)
     
    protected void
    saveData(net.minecraft.world.item.ItemStack contentHolder)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player playerIn)
     

    Methods inherited from class com.simibubi.create.foundation.gui.container.GhostItemContainer

    canDragTo, canTakeItemForPickAll, clearContents, initAndReadInventory, quickMoveStack

    Methods inherited from class com.simibubi.create.foundation.gui.container.ContainerBase

    addPlayerSlots, init, removed

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.simibubi.create.foundation.gui.container.IClearableContainer

    sendClearPacket
  • Constructor Details

    • LinkedControllerContainer

      public LinkedControllerContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData)
    • LinkedControllerContainer

      public LinkedControllerContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack filterItem)
  • Method Details

    • create

      public static LinkedControllerContainer create(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack filterItem)
    • createOnClient

      protected net.minecraft.world.item.ItemStack createOnClient(net.minecraft.network.FriendlyByteBuf extraData)
      Specified by:
      createOnClient in class ContainerBase<net.minecraft.world.item.ItemStack>
    • createGhostInventory

      protected net.minecraftforge.items.ItemStackHandler createGhostInventory()
      Specified by:
      createGhostInventory in class GhostItemContainer<net.minecraft.world.item.ItemStack>
    • addSlots

      protected void addSlots()
      Specified by:
      addSlots in class ContainerBase<net.minecraft.world.item.ItemStack>
    • saveData

      protected void saveData(net.minecraft.world.item.ItemStack contentHolder)
      Specified by:
      saveData in class ContainerBase<net.minecraft.world.item.ItemStack>
    • allowRepeats

      protected boolean allowRepeats()
      Specified by:
      allowRepeats in class GhostItemContainer<net.minecraft.world.item.ItemStack>
    • clicked

      public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player)
      Overrides:
      clicked in class GhostItemContainer<net.minecraft.world.item.ItemStack>
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      stillValid in class ContainerBase<net.minecraft.world.item.ItemStack>