Interface ItemMenuInteractionEvent


public interface ItemMenuInteractionEvent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    interactWithItemInMenu(net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.inventory.Slot slot, net.minecraft.world.item.ItemStack slotStack, net.minecraft.world.item.ItemStack cursorStack)
     
  • Field Details

  • Method Details

    • interactWithItemInMenu

      boolean interactWithItemInMenu(net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.inventory.Slot slot, net.minecraft.world.item.ItemStack slotStack, net.minecraft.world.item.ItemStack cursorStack)
      Parameters:
      clickAction - The mouse button being clicked
      slot - The slot the item being interacted with is in
      slotStack - The ItemStack in the slot that's being interacted with
      cursorStack - The ItemStack currently being held by the user's cursor
      Returns:
      true to indicate that the event has been handled and further processing should be canceled, false to fall back to default processing of the click.