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 containerId, Inventory inventory)
    • DispenserMenu

      public DispenserMenu(int containerId, Inventory inventory, Container dispenser)
  • Method Details

    • add3x3GridSlots

      protected void add3x3GridSlots(Container container, int left, int top)
    • stillValid

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

      public ItemStack quickMoveStack(Player player, int slotIndex)
      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 player)
      Called when the container is closed.
      Overrides:
      removed in class AbstractContainerMenu