Interface InteractContainerEvent
- All Superinterfaces:
Cancellable,Event
- All Known Subinterfaces:
ClickContainerEvent,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,EnchantItemEvent.CalculateEnchantment,EnchantItemEvent.CalculateLevelRequirement,EnchantItemEvent.Post,InteractContainerEvent.Close,InteractContainerEvent.Open
An interaction with a open
Container.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe target container was closed.static interfaceThe target container was opened. -
Method Summary
Modifier and TypeMethodDescriptionGets theContainer.Gets theTransactionofItemStackSnapshots for this event.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
container
Container container()Gets theContainer.- Returns:
- The container
-
cursorTransaction
Transaction<ItemStackSnapshot> cursorTransaction()Gets theTransactionofItemStackSnapshots for this event.- Returns:
- The transaction of the item
-