Class SmallPartsMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.SmallPartsMenu

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

    Fields
    Modifier and Type
    Field
    Description
    static final List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.Item,net.minecraft.world.item.Item>>
     

    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
    SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory)
     
    SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.ContainerLevelAccess levelAccess)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    clickMenuButton(net.minecraft.world.entity.player.Player player, int id)
     
    List<net.minecraft.world.item.Item>
    getAvailableCraftables(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.inventory.Slot
     
    int
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex)
    Handle when the stack in slot index is shift-clicked.
    void
     
    void
    removed(net.minecraft.world.entity.player.Player pPlayer)
    Called when the container is closed.
    void
    slotsChanged(net.minecraft.world.Container pInventory)
    Callback for when the crafting matrix is changed.
    boolean
    stillValid(net.minecraft.world.entity.player.Player pPlayer)
    Determines whether supplied player can use this container

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

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALL_CRAFTABLES

      public static final List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.Item,net.minecraft.world.item.Item>> ALL_CRAFTABLES
  • Constructor Details

    • SmallPartsMenu

      public SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory)
    • SmallPartsMenu

      public SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.ContainerLevelAccess levelAccess)
  • Method Details

    • getAvailableCraftables

      public List<net.minecraft.world.item.Item> getAvailableCraftables(net.minecraft.world.item.ItemStack stack)
    • getSelectedPartsPatternIndex

      public int getSelectedPartsPatternIndex()
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer)
      Determines whether supplied player can use this container
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • clickMenuButton

      public boolean clickMenuButton(net.minecraft.world.entity.player.Player player, int id)
      Overrides:
      clickMenuButton in class net.minecraft.world.inventory.AbstractContainerMenu
    • slotsChanged

      public void slotsChanged(net.minecraft.world.Container pInventory)
      Callback for when the crafting matrix is changed.
      Overrides:
      slotsChanged in class net.minecraft.world.inventory.AbstractContainerMenu
    • registerUpdateListener

      public void registerUpdateListener(Runnable runnable)
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex)
      Handle when the stack in slot index is shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • removed

      public void removed(net.minecraft.world.entity.player.Player pPlayer)
      Called when the container is closed.
      Overrides:
      removed in class net.minecraft.world.inventory.AbstractContainerMenu
    • getMaterialSlot

      public net.minecraft.world.inventory.Slot getMaterialSlot()