Class SmithItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryInteractEvent
org.bukkit.event.inventory.InventoryClickEvent
org.bukkit.event.inventory.SmithItemEvent
- All Implemented Interfaces:
Cancellable
Called when the recipe of an Item is completed inside a smithing table.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class InventoryEvent
transaction -
Constructor Summary
ConstructorsConstructorDescriptionSmithItemEvent(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) SmithItemEvent(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 InventoryClickEvent
getAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursorMethods inherited from class InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResultMethods inherited from class InventoryEvent
getView, getViewersMethods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
SmithItemEvent
public SmithItemEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action) -
SmithItemEvent
public SmithItemEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key)
-
-
Method Details
-
getInventory
Description copied from class:InventoryEventGets the primary Inventory involved in this transaction- Overrides:
getInventoryin classInventoryEvent- Returns:
- The upper inventory.
-