MenuAction

Intermediate

net.runelite.api

Enum representing different types of menu actions. Use this to identify what type of action a menu entry represents.

Category
Utility
Methods
0
Properties
3

Properties (3)

NPC_FIRST_OPTION

MenuAction

First option on an NPC (usually 'Attack' or 'Talk-to')

java
1if (event.getType() == MenuAction.NPC_FIRST_OPTION) {
2    // Handle first NPC option
3}

ITEM_USE_ON_NPC

MenuAction

Using an item on an NPC

java
1if (event.getType() == MenuAction.ITEM_USE_ON_NPC) {
2    // Handle item use on NPC
3}

WALK

MenuAction

Walking to a location

java
1if (event.getType() == MenuAction.WALK) {
2    // Handle walk action
3}

Related Classes

Plugins Using This Class