Created
June 15, 2012 21:19
-
-
Save phl0w/2938760 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param item | |
| * @return The integer of the widget equipment slot if found, otherwise -1. | |
| */ | |
| public static int isWearing(int item) { | |
| for (int slot : WIDGET_EQUIPMENT_ALL) { | |
| if (Widgets.get(WIDGET, WIDGET_EQUIPMENT_ALL[slot]).getChildId() == item) { | |
| return WIDGET_EQUIPMENT_ALL[slot]; | |
| } | |
| } | |
| return -1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment