Skip to content

Commit 0bd850f

Browse files
committed
Merge #85
Thanks @Bionicrm commit 6ba95fb Author: T.J. M Date: 2014-04-27 02:35:27 -0400 Complete getCurrentItem() description and @return commit bdbe059 Author: T.J. M Date: 2014-04-18 21:52:02 -0400 Remove tab from beginning of " * " commit 6c563ad Author: T.J. M Date: 2014-04-18 21:48:23 -0400 Complete getCurrentItem() @return description In addition to adding "slot" to "the item in the clicked", it may be helpful to state that empty slots return Air, while clicking outside the inventory returns null. (I've tested this to confirm)
2 parents cdd9d61 + 6ba95fb commit 0bd850f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ public ItemStack getCursor() {
9191
}
9292

9393
/**
94-
* Gets the ItemStack currently in the clicked slot.
94+
* Gets the ItemStack currently in the clicked slot. Returns air for empty
95+
* slots and null for clicking outside the inventory.
9596
*
96-
* @return the item in the clicked
97+
* @return the item in the clicked slot
9798
*/
9899
public ItemStack getCurrentItem() {
99100
if (slot_type == SlotType.OUTSIDE) {

0 commit comments

Comments
 (0)