Package io.papermc.paper.event.player
Class CartographyItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryInteractEvent
org.bukkit.event.inventory.InventoryClickEvent
io.papermc.paper.event.player.CartographyItemEvent
- All Implemented Interfaces:
Cancellable
Called when the recipe of an Item is completed inside a cartography table.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.inventory.InventoryEvent
transaction
-
Constructor Summary
ConstructorDescriptionCartographyItemEvent
(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) CartographyItemEvent
(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key) -
Method Summary
Modifier and TypeMethodDescriptionGets the primary Inventory involved in this transactionMethods inherited from class org.bukkit.event.inventory.InventoryClickEvent
getAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursor
Methods inherited from class org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getView, getViewers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CartographyItemEvent
@Internal public CartographyItemEvent(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) -
CartographyItemEvent
@Internal public CartographyItemEvent(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key)
-
-
Method Details
-
getInventory
Description copied from class:InventoryEvent
Gets the primary Inventory involved in this transaction- Overrides:
getInventory
in classInventoryEvent
- Returns:
- The upper inventory.
-