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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn interaction with a creative inventory.static interfaceA double-click with the primary mouse buttonstatic interfaceA completed drag Interaction.static interfaceAn interaction resulting in dropping an item.static interfaceA click with the middle mouse button.static interfaceA number press swapping the hotbar slot with the slot the mouse hovers over.static interfaceA click with the primary mouse button.static interfaceFires when the client requests a recipe to be crafted.static interfaceA click with the secondary mouse button.static interfaceFies when the client requests to select a trade from aTraderstatic interfaceA click with theshiftmodifier activeNested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.ChangeInventoryEventChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHandNested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEventInteractContainerEvent.Close, InteractContainerEvent.Open
- 
Method SummaryMethods inherited from interface org.spongepowered.api.event.item.inventory.AffectSlotEventfilter, transactionsMethods inherited from interface org.spongepowered.api.event.CancellableisCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEventcontainer, cursorTransaction
- 
Method Details- 
inventoryDescription copied from interface:ChangeInventoryEventGets theInventory.- Specified by:
- inventoryin interface- ChangeInventoryEvent
- Returns:
- The inventory
 
- 
slotReturns the primary interaction Slot.May return Optional.empty()for events that do not directly interact with a Slot- Returns:
- The primary interaction Slot
 
 
-