api: add methods to get selected item

This commit is contained in:
Adam
2022-03-06 22:09:56 -05:00
parent 94691fc870
commit 473a3042fb

View File

@@ -1883,6 +1883,18 @@ public interface Client extends GameEngine
*/
void setSpellSelected(boolean selected);
/**
* Get if an item is selected with "Use"
* @return 1 if selected, else 0
*/
int getSelectedItem();
/**
* If an item is selected, this is the item index in the inventory.
* @return
*/
int getSelectedItemIndex();
/**
* Returns client item composition cache
*/