public interface ClickInventoryEvent extends ChangeInventoryEvent, InteractInventoryEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
ClickInventoryEvent.Creative
A click in a creative inventory.
|
static interface |
ClickInventoryEvent.Double
A double-click with the primary mouse button collecting items onto the cursor.
|
static interface |
ClickInventoryEvent.Drag
A completed drag Interaction.
|
static interface |
ClickInventoryEvent.Drop
An interaction resulting in dropping an item.
|
static interface |
ClickInventoryEvent.Middle
A click with the middle mouse button.
|
static interface |
ClickInventoryEvent.NumberPress
A number press swapping the
Hotbar slot with the slot the mouse hovers over. |
static interface |
ClickInventoryEvent.Primary
A click with the primary mouse button.
|
static interface |
ClickInventoryEvent.Recipe
Fires when the client requests a recipe to be crafted.
|
static interface |
ClickInventoryEvent.Secondary
A click with the secondary mouse button.
|
static interface |
ClickInventoryEvent.Shift
A click with the
shift modifier active. |
ChangeInventoryEvent.Equipment, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand, ChangeInventoryEvent.Transfer
InteractInventoryEvent.Close, InteractInventoryEvent.Open
Modifier and Type | Method and Description |
---|---|
Optional<Slot> |
getSlot()
Returns the primary interaction Slot.
|
filter, getTransactions
isCancelled, setCancelled
getCursorTransaction
getTargetInventory
getCause, getContext, getSource
Optional<Slot> getSlot()
May return Optional.empty()
for events that do not directly interact with a Slot