Commits
md_5 authored 2e244e41b4c
7 7 | import org.bukkit.event.inventory.InventoryType.SlotType; |
8 8 | import org.bukkit.inventory.Inventory; |
9 9 | import org.bukkit.inventory.InventoryView; |
10 10 | import org.bukkit.inventory.ItemStack; |
11 11 | import org.bukkit.plugin.Plugin; |
12 12 | import org.bukkit.scheduler.BukkitScheduler; |
13 13 | import org.jetbrains.annotations.NotNull; |
14 14 | import org.jetbrains.annotations.Nullable; |
15 15 | |
16 16 | /** |
17 - | * This event is called when a player clicks a slot in an inventory. |
17 + | * This event is called when a player clicks in an inventory. |
18 18 | * <p> |
19 19 | * Because InventoryClickEvent occurs within a modification of the Inventory, |
20 20 | * not all Inventory related methods are safe to use. |
21 21 | * <p> |
22 22 | * The following should never be invoked by an EventHandler for |
23 23 | * InventoryClickEvent using the HumanEntity or InventoryView associated with |
24 24 | * this event: |
25 25 | * <ul> |
26 26 | * <li>{@link HumanEntity#closeInventory()} |
27 27 | * <li>{@link HumanEntity#openInventory(Inventory)} |