Package net.runelite.api
Enum MenuAction
- java.lang.Object
-
- java.lang.Enum<MenuAction>
-
- net.runelite.api.MenuAction
-
- All Implemented Interfaces:
Serializable
,Comparable<MenuAction>
public enum MenuAction extends Enum<MenuAction>
An enumeration of right-click menu actions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL
Menu action triggered by canceling a menu.CC_OP
Menu action for normal priority child component actions.CC_OP_LOW_PRIORITY
Menu action for low priority child component actions.EXAMINE_ITEM
Deprecated.EXAMINE_ITEM_GROUND
Menu action triggered by examining item on ground.EXAMINE_NPC
Menu action triggered by examining an NPC.EXAMINE_OBJECT
Menu action triggered by examining an object.GAME_OBJECT_FIFTH_OPTION
Fifth menu action for a game object.GAME_OBJECT_FIRST_OPTION
First menu action for a game object.GAME_OBJECT_FOURTH_OPTION
Fourth menu action for a game object.GAME_OBJECT_SECOND_OPTION
Second menu action for a game object.GAME_OBJECT_THIRD_OPTION
Third menu action for a game object.GROUND_ITEM_FIFTH_OPTION
Fifth menu action for an item on the ground.GROUND_ITEM_FIRST_OPTION
First menu action for an item on the ground.GROUND_ITEM_FOURTH_OPTION
Fourth menu action for an item on the ground.GROUND_ITEM_SECOND_OPTION
Second menu action for an item on the ground.GROUND_ITEM_THIRD_OPTION
Third menu action for an item on the ground.ITEM_FIFTH_OPTION
Deprecated.ITEM_FIRST_OPTION
Deprecated.ITEM_FOURTH_OPTION
Deprecated.ITEM_SECOND_OPTION
Deprecated.ITEM_THIRD_OPTION
Deprecated.ITEM_USE
Deprecated.ITEM_USE_ON_GAME_OBJECT
Deprecated.ITEM_USE_ON_GROUND_ITEM
Deprecated.ITEM_USE_ON_ITEM
Deprecated.ITEM_USE_ON_NPC
Deprecated.ITEM_USE_ON_PLAYER
Deprecated.NPC_FIFTH_OPTION
Fifth menu action for an NPC.NPC_FIRST_OPTION
First menu action for an NPC.NPC_FOURTH_OPTION
Fourth menu action for an NPC.NPC_SECOND_OPTION
Second menu action for an NPC.NPC_THIRD_OPTION
Third menu action for an NPC.PLAYER_EIGHTH_OPTION
PLAYER_FIFTH_OPTION
PLAYER_FIRST_OPTION
PLAYER_FOURTH_OPTION
PLAYER_SECOND_OPTION
PLAYER_SEVENTH_OPTION
PLAYER_SIXTH_OPTION
PLAYER_THIRD_OPTION
RUNELITE
Menu action injected by runelite for its menu items.RUNELITE_HIGH_PRIORITY
Menu action for high priority runelite optionsRUNELITE_INFOBOX
Menu action for InfoBox menu entriesRUNELITE_LOW_PRIORITY
LikeRUNELITE
, except clicking always forces the menu open.RUNELITE_OVERLAY
Menu action injected by runelite for overlay menu items.RUNELITE_OVERLAY_CONFIG
Menu action for configuring runelite overlays.RUNELITE_PLAYER
Menu action injected by runelite for menu items which target a player and have its identifier set to a player index.RUNELITE_WIDGET
RuneLite menu that is a widge.UNKNOWN
Menu action triggered when the id is not defined in this class.WALK
Menu action for walking.WIDGET_CLOSE
Performs an ifclose.WIDGET_CONTINUE
Performs a ContinueWIDGET_FIFTH_OPTION
Fifth menu action for a widget.WIDGET_FIRST_OPTION
First menu action for a widget.WIDGET_FOURTH_OPTION
Fourth menu action for a widget.WIDGET_SECOND_OPTION
Second menu action for a widget.WIDGET_TARGET
Select the widget for targeting other widgets/entites etc.WIDGET_TARGET_ON_GAME_OBJECT
Menu action for using a widget on a tile object (GameObject or GroundObject).WIDGET_TARGET_ON_GROUND_ITEM
Menu action for using a widget on an item on the ground.WIDGET_TARGET_ON_NPC
Menu action for using a widget on an NPC.WIDGET_TARGET_ON_PLAYER
Menu action for using a widget on a player.WIDGET_TARGET_ON_WIDGET
Using a widget on another widgetWIDGET_THIRD_OPTION
Third menu action for a widget.WIDGET_TYPE_1
Interaction with widget (type 1).WIDGET_TYPE_4
Interaction with widget (type 4).WIDGET_TYPE_5
Interaction with widget (type 5).WIDGET_USE_ON_ITEM
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static int
MENU_ACTION_DEPRIORITIZE_OFFSET
static MenuAction
PLAYER_EIGTH_OPTION
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
static MenuAction
of(int id)
static MenuAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static MenuAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITEM_USE_ON_GAME_OBJECT
@Deprecated public static final MenuAction ITEM_USE_ON_GAME_OBJECT
Deprecated.Menu action for using an item in your inventory on a tile object (GameObject or GroundObject).
-
WIDGET_TARGET_ON_GAME_OBJECT
public static final MenuAction WIDGET_TARGET_ON_GAME_OBJECT
Menu action for using a widget on a tile object (GameObject or GroundObject).
-
GAME_OBJECT_FIRST_OPTION
public static final MenuAction GAME_OBJECT_FIRST_OPTION
First menu action for a game object.
-
GAME_OBJECT_SECOND_OPTION
public static final MenuAction GAME_OBJECT_SECOND_OPTION
Second menu action for a game object.
-
GAME_OBJECT_THIRD_OPTION
public static final MenuAction GAME_OBJECT_THIRD_OPTION
Third menu action for a game object.
-
GAME_OBJECT_FOURTH_OPTION
public static final MenuAction GAME_OBJECT_FOURTH_OPTION
Fourth menu action for a game object.
-
GAME_OBJECT_FIFTH_OPTION
public static final MenuAction GAME_OBJECT_FIFTH_OPTION
Fifth menu action for a game object.
-
ITEM_USE_ON_NPC
@Deprecated public static final MenuAction ITEM_USE_ON_NPC
Deprecated.Menu action for using an item in your inventory on an NPC.
-
WIDGET_TARGET_ON_NPC
public static final MenuAction WIDGET_TARGET_ON_NPC
Menu action for using a widget on an NPC.
-
NPC_FIRST_OPTION
public static final MenuAction NPC_FIRST_OPTION
First menu action for an NPC.
-
NPC_SECOND_OPTION
public static final MenuAction NPC_SECOND_OPTION
Second menu action for an NPC.
-
NPC_THIRD_OPTION
public static final MenuAction NPC_THIRD_OPTION
Third menu action for an NPC.
-
NPC_FOURTH_OPTION
public static final MenuAction NPC_FOURTH_OPTION
Fourth menu action for an NPC.
-
NPC_FIFTH_OPTION
public static final MenuAction NPC_FIFTH_OPTION
Fifth menu action for an NPC.
-
ITEM_USE_ON_PLAYER
@Deprecated public static final MenuAction ITEM_USE_ON_PLAYER
Deprecated.Menu action for using an item on a player.
-
WIDGET_TARGET_ON_PLAYER
public static final MenuAction WIDGET_TARGET_ON_PLAYER
Menu action for using a widget on a player.
-
ITEM_USE_ON_GROUND_ITEM
@Deprecated public static final MenuAction ITEM_USE_ON_GROUND_ITEM
Deprecated.Menu action for using an item on an item on the ground.
-
WIDGET_TARGET_ON_GROUND_ITEM
public static final MenuAction WIDGET_TARGET_ON_GROUND_ITEM
Menu action for using a widget on an item on the ground.
-
GROUND_ITEM_FIRST_OPTION
public static final MenuAction GROUND_ITEM_FIRST_OPTION
First menu action for an item on the ground.
-
GROUND_ITEM_SECOND_OPTION
public static final MenuAction GROUND_ITEM_SECOND_OPTION
Second menu action for an item on the ground.
-
GROUND_ITEM_THIRD_OPTION
public static final MenuAction GROUND_ITEM_THIRD_OPTION
Third menu action for an item on the ground.
-
GROUND_ITEM_FOURTH_OPTION
public static final MenuAction GROUND_ITEM_FOURTH_OPTION
Fourth menu action for an item on the ground.
-
GROUND_ITEM_FIFTH_OPTION
public static final MenuAction GROUND_ITEM_FIFTH_OPTION
Fifth menu action for an item on the ground.
-
WALK
public static final MenuAction WALK
Menu action for walking.
-
WIDGET_TYPE_1
public static final MenuAction WIDGET_TYPE_1
Interaction with widget (type 1).
-
WIDGET_TARGET
public static final MenuAction WIDGET_TARGET
Select the widget for targeting other widgets/entites etc.- See Also:
Client.getSelectedWidget()
-
WIDGET_CLOSE
public static final MenuAction WIDGET_CLOSE
Performs an ifclose.
-
WIDGET_TYPE_4
public static final MenuAction WIDGET_TYPE_4
Interaction with widget (type 4).
-
WIDGET_TYPE_5
public static final MenuAction WIDGET_TYPE_5
Interaction with widget (type 5).
-
WIDGET_CONTINUE
public static final MenuAction WIDGET_CONTINUE
Performs a Continue
-
ITEM_USE_ON_ITEM
@Deprecated public static final MenuAction ITEM_USE_ON_ITEM
Deprecated.Menu action when using an item on another item
-
WIDGET_USE_ON_ITEM
@Deprecated public static final MenuAction WIDGET_USE_ON_ITEM
Deprecated.Menu action when using a component on an item
-
ITEM_FIRST_OPTION
@Deprecated public static final MenuAction ITEM_FIRST_OPTION
Deprecated.First menu action for an item.
-
ITEM_SECOND_OPTION
@Deprecated public static final MenuAction ITEM_SECOND_OPTION
Deprecated.Second menu action for an item.
-
ITEM_THIRD_OPTION
@Deprecated public static final MenuAction ITEM_THIRD_OPTION
Deprecated.Third menu action for an item.
-
ITEM_FOURTH_OPTION
@Deprecated public static final MenuAction ITEM_FOURTH_OPTION
Deprecated.Fourth menu action for an item.
-
ITEM_FIFTH_OPTION
@Deprecated public static final MenuAction ITEM_FIFTH_OPTION
Deprecated.Fifth menu action for an item.
-
ITEM_USE
@Deprecated public static final MenuAction ITEM_USE
Deprecated.Menu action to use an item.
-
WIDGET_FIRST_OPTION
public static final MenuAction WIDGET_FIRST_OPTION
First menu action for a widget.
-
WIDGET_SECOND_OPTION
public static final MenuAction WIDGET_SECOND_OPTION
Second menu action for a widget.
-
WIDGET_THIRD_OPTION
public static final MenuAction WIDGET_THIRD_OPTION
Third menu action for a widget.
-
WIDGET_FOURTH_OPTION
public static final MenuAction WIDGET_FOURTH_OPTION
Fourth menu action for a widget.
-
WIDGET_FIFTH_OPTION
public static final MenuAction WIDGET_FIFTH_OPTION
Fifth menu action for a widget.
-
PLAYER_FIRST_OPTION
public static final MenuAction PLAYER_FIRST_OPTION
-
PLAYER_SECOND_OPTION
public static final MenuAction PLAYER_SECOND_OPTION
-
PLAYER_THIRD_OPTION
public static final MenuAction PLAYER_THIRD_OPTION
-
PLAYER_FOURTH_OPTION
public static final MenuAction PLAYER_FOURTH_OPTION
-
PLAYER_FIFTH_OPTION
public static final MenuAction PLAYER_FIFTH_OPTION
-
PLAYER_SIXTH_OPTION
public static final MenuAction PLAYER_SIXTH_OPTION
-
PLAYER_SEVENTH_OPTION
public static final MenuAction PLAYER_SEVENTH_OPTION
-
PLAYER_EIGHTH_OPTION
public static final MenuAction PLAYER_EIGHTH_OPTION
-
CC_OP
public static final MenuAction CC_OP
Menu action for normal priority child component actions.
-
WIDGET_TARGET_ON_WIDGET
public static final MenuAction WIDGET_TARGET_ON_WIDGET
Using a widget on another widget
-
RUNELITE_WIDGET
public static final MenuAction RUNELITE_WIDGET
RuneLite menu that is a widge.- See Also:
MenuEntry.getWidget()
-
RUNELITE_HIGH_PRIORITY
public static final MenuAction RUNELITE_HIGH_PRIORITY
Menu action for high priority runelite options
-
EXAMINE_OBJECT
public static final MenuAction EXAMINE_OBJECT
Menu action triggered by examining an object.
-
EXAMINE_NPC
public static final MenuAction EXAMINE_NPC
Menu action triggered by examining an NPC.
-
EXAMINE_ITEM_GROUND
public static final MenuAction EXAMINE_ITEM_GROUND
Menu action triggered by examining item on ground.
-
EXAMINE_ITEM
@Deprecated public static final MenuAction EXAMINE_ITEM
Deprecated.Menu action triggered by examining item in inventory.
-
CANCEL
public static final MenuAction CANCEL
Menu action triggered by canceling a menu.
-
CC_OP_LOW_PRIORITY
public static final MenuAction CC_OP_LOW_PRIORITY
Menu action for low priority child component actions.
-
RUNELITE
public static final MenuAction RUNELITE
Menu action injected by runelite for its menu items.
-
RUNELITE_OVERLAY
public static final MenuAction RUNELITE_OVERLAY
Menu action injected by runelite for overlay menu items.
-
RUNELITE_OVERLAY_CONFIG
public static final MenuAction RUNELITE_OVERLAY_CONFIG
Menu action for configuring runelite overlays.
-
RUNELITE_PLAYER
public static final MenuAction RUNELITE_PLAYER
Menu action injected by runelite for menu items which target a player and have its identifier set to a player index.
-
RUNELITE_INFOBOX
public static final MenuAction RUNELITE_INFOBOX
Menu action for InfoBox menu entries
-
RUNELITE_LOW_PRIORITY
public static final MenuAction RUNELITE_LOW_PRIORITY
LikeRUNELITE
, except clicking always forces the menu open.
-
UNKNOWN
public static final MenuAction UNKNOWN
Menu action triggered when the id is not defined in this class.
-
-
Field Detail
-
MENU_ACTION_DEPRIORITIZE_OFFSET
public static final int MENU_ACTION_DEPRIORITIZE_OFFSET
- See Also:
- Constant Field Values
-
PLAYER_EIGTH_OPTION
@Deprecated public static final MenuAction PLAYER_EIGTH_OPTION
Deprecated.
-
-
Method Detail
-
values
public static MenuAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MenuAction c : MenuAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId()
-
of
public static MenuAction of(int id)
-
-