Class ItemSearcherMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
me.desht.pneumaticcraft.common.inventory.ItemSearcherMenu

public class ItemSearcherMenu extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     

    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
    ItemSearcherMenu(int windowId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player par1EntityPlayer, int par2)
    Called when a player shift-clicks on a slot.
    void
    scrollTo(double scrollPos)
    Updates the gui slots ItemStack's based on scroll position.
    void
    setItem(int par1, int state, net.minecraft.world.item.ItemStack par2ItemStack)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

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

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, 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
  • Field Details

    • itemList

      public final net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemList
  • Constructor Details

    • ItemSearcherMenu

      public ItemSearcherMenu(int windowId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf data)
  • Method Details

    • init

      public void init(ItemSearcherScreen gui)
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • scrollTo

      public void scrollTo(double scrollPos)
      Updates the gui slots ItemStack's based on scroll position.
      Parameters:
      scrollPos - scroll position, the range 0.0 - 1.0
    • hasMoreThan1PageOfItemsInList

      public boolean hasMoreThan1PageOfItemsInList()
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player par1EntityPlayer, int par2)
      Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.
      Overrides:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • setItem

      public void setItem(int par1, int state, net.minecraft.world.item.ItemStack par2ItemStack)
      Overrides:
      setItem in class net.minecraft.world.inventory.AbstractContainerMenu