api: add methods to get selected item
This commit is contained in:
@@ -1883,6 +1883,18 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
void setSpellSelected(boolean selected);
|
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
|
* Returns client item composition cache
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user