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
public interface InteractContainerEvent extends Event, Cancellable
An interaction with a openContainer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInteractContainerEvent.CloseThe target container was closed.static interfaceInteractContainerEvent.OpenThe target container was opened.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Containercontainer()Gets theContainer.Transaction<ItemStackSnapshot>cursorTransaction()Gets theTransactionofItemStackSnapshots for this event.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
cursorTransaction
Transaction<ItemStackSnapshot> cursorTransaction()
Gets theTransactionofItemStackSnapshots for this event.- Returns:
- The transaction of the item
-
-