Interface ClickContainerEvent
- All Superinterfaces:
AffectItemStackEvent
,AffectSlotEvent
,Cancellable
,ChangeInventoryEvent
,Event
,InteractContainerEvent
- All Known Subinterfaces:
ClickContainerEvent.Creative
,ClickContainerEvent.Creative.Drop
,ClickContainerEvent.Creative.Set
,ClickContainerEvent.Double
,ClickContainerEvent.Drag
,ClickContainerEvent.Drag.Middle
,ClickContainerEvent.Drag.Primary
,ClickContainerEvent.Drag.Secondary
,ClickContainerEvent.Drop
,ClickContainerEvent.Drop.Full
,ClickContainerEvent.Drop.Outside
,ClickContainerEvent.Drop.Outside.Primary
,ClickContainerEvent.Drop.Outside.Secondary
,ClickContainerEvent.Drop.Single
,ClickContainerEvent.Middle
,ClickContainerEvent.NumberPress
,ClickContainerEvent.Primary
,ClickContainerEvent.Recipe
,ClickContainerEvent.Recipe.All
,ClickContainerEvent.Recipe.Single
,ClickContainerEvent.Secondary
,ClickContainerEvent.SelectTrade
,ClickContainerEvent.Shift
,ClickContainerEvent.Shift.Primary
,ClickContainerEvent.Shift.Secondary
,CraftItemEvent.Craft
,CraftItemEvent.Preview
,EnchantItemEvent.Post
A click interaction in an open container.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
An interaction with a creative inventory.static interface
A double-click with the primary mouse buttonstatic interface
A completed drag Interaction.static interface
An interaction resulting in dropping an item.static interface
A click with the middle mouse button.static interface
A number press swapping the hotbar slot with the slot the mouse hovers over.static interface
A click with the primary mouse button.static interface
Fires when the client requests a recipe to be crafted.static interface
A click with the secondary mouse button.static interface
Fies when the client requests to select a trade from aTrader
static interface
A click with theshift
modifier activeNested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.ChangeInventoryEvent
ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
InteractContainerEvent.Close, InteractContainerEvent.Open
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.item.inventory.AffectSlotEvent
filter, transactions
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
container, cursorTransaction
-
Method Details
-
inventory
Description copied from interface:ChangeInventoryEvent
Gets theInventory
.- Specified by:
inventory
in interfaceChangeInventoryEvent
- Returns:
- The inventory
-
slot
Returns the primary interaction Slot.May return
Optional.empty()
for events that do not directly interact with a Slot- Returns:
- The primary interaction Slot
-