Package dev.upcraft.sparkweave.api.event
Interface ItemMenuInteractionEvent
public interface ItemMenuInteractionEvent
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleaninteractWithItemInMenu(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
-
EVENT
-
-
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 clickedslot- The slot the item being interacted with is inslotStack- TheItemStackin the slot that's being interacted withcursorStack- TheItemStackcurrently being held by the user's cursor- Returns:
trueto indicate that the event has been handled and further processing should be canceled,falseto fall back to default processing of the click.
-