Class DispenserMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.DispenserMenu

public class DispenserMenu extends AbstractContainerMenu
  • Field Details

  • Constructor Details

    • DispenserMenu

      public DispenserMenu(int pContainerId, Inventory pPlayerInventory)
    • DispenserMenu

      public DispenserMenu(int pContainerId, Inventory pPlayerInventory, Container pContainer)
  • Method Details

    • add3x3GridSlots

      protected void add3x3GridSlots(Container pContainer, int pX, int pY)
    • stillValid

      public boolean stillValid(Player pPlayer)
      Determines whether supplied player can use this container
      Specified by:
      stillValid in class AbstractContainerMenu
    • quickMoveStack

      public ItemStack quickMoveStack(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 AbstractContainerMenu
    • removed

      public void removed(Player pPlayer)
      Called when the container is closed.
      Overrides:
      removed in class AbstractContainerMenu