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
Modifier and TypeInterfaceDescriptionstatic interface
The target container was closed.static interface
The target container was opened. -
Method Summary
Modifier and TypeMethodDescriptionGets theContainer
.Gets theTransaction
ofItemStackSnapshot
s 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 theTransaction
ofItemStackSnapshot
s for this event.- Returns:
- The transaction of the item
-