Merge remote-tracking branch 'runelite/master'

This commit is contained in:
Owain van Brakel
2022-03-09 01:50:40 +01:00
13 changed files with 539 additions and 103 deletions

View File

@@ -2056,6 +2056,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
*/

View File

@@ -48,8 +48,6 @@ public interface NPCComposition extends ParamHolder
boolean isClickable();
boolean isFollower();
/**
* NPC can be interacting with via menu options
* @return
@@ -98,4 +96,11 @@ public interface NPCComposition extends ParamHolder
* Gets the displayed overhead icon of the NPC.
*/
HeadIcon getOverheadIcon();
}
/**
* If the npc is a follower, such as a pet. Is affected by the
* "Move follower options lower down" setting.
* @return
*/
boolean isFollower();
}