Skip to content

Complete getCurrentItem() @return description #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 9, 2014
Merged

Complete getCurrentItem() @return description #85

merged 3 commits into from
Jul 9, 2014

Conversation

tmazeika
Copy link
Contributor

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)

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)
@@ -93,7 +93,8 @@ public ItemStack getCursor() {
/**
* Gets the ItemStack currently in the clicked slot.
*
* @return the item in the clicked
* @return the item in the clicked slot. Air for empty slots, null for
* clicking outside the inventory
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why this shows extra space before the " * "... it's not showing in my editor nor GitHub's editor that I used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a tab

@tmazeika
Copy link
Contributor Author

I've updated it to remove the tab. I could have sworn I didn't use any tabs :)

@SagaciousZed
Copy link
Contributor

In most of Java's Javadocs, clarifications to what the return value can be is in the javadoc body and not on the tag.

@tmazeika
Copy link
Contributor Author

Apologies, @SagaciousZed, GitHub decided not to send an email about your reply so 4 days later, I find I need changes :)

@Wolvereness Wolvereness merged commit 6ba95fb into Bukkit:master Jul 9, 2014
Wolvereness added a commit that referenced this pull request Jul 9, 2014
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants