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
Nested 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.ChangeInventoryEvent
ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHandNested 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, transactionsMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
container, cursorTransaction
-
Method Details
-
inventory
Description copied from interface:ChangeInventoryEventGets theInventory.- Specified by:
inventoryin 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
-