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 CANCELMenu action triggered by canceling a menu.CC_OPMenu action for normal priority child component actions.CC_OP_LOW_PRIORITYMenu action for low priority child component actions.EXAMINE_ITEMDeprecated.EXAMINE_ITEM_GROUNDMenu action triggered by examining item on ground.EXAMINE_NPCMenu action triggered by examining an NPC.EXAMINE_OBJECTMenu action triggered by examining an object.GAME_OBJECT_FIFTH_OPTIONFifth menu action for a game object.GAME_OBJECT_FIRST_OPTIONFirst menu action for a game object.GAME_OBJECT_FOURTH_OPTIONFourth menu action for a game object.GAME_OBJECT_SECOND_OPTIONSecond menu action for a game object.GAME_OBJECT_THIRD_OPTIONThird menu action for a game object.GROUND_ITEM_FIFTH_OPTIONFifth menu action for an item on the ground.GROUND_ITEM_FIRST_OPTIONFirst menu action for an item on the ground.GROUND_ITEM_FOURTH_OPTIONFourth menu action for an item on the ground.GROUND_ITEM_SECOND_OPTIONSecond menu action for an item on the ground.GROUND_ITEM_THIRD_OPTIONThird menu action for an item on the ground.ITEM_FIFTH_OPTIONDeprecated.ITEM_FIRST_OPTIONDeprecated.ITEM_FOURTH_OPTIONDeprecated.ITEM_SECOND_OPTIONDeprecated.ITEM_THIRD_OPTIONDeprecated.ITEM_USEDeprecated.ITEM_USE_ON_GAME_OBJECTDeprecated.ITEM_USE_ON_GROUND_ITEMDeprecated.ITEM_USE_ON_ITEMDeprecated.ITEM_USE_ON_NPCDeprecated.ITEM_USE_ON_PLAYERDeprecated.NPC_FIFTH_OPTIONFifth menu action for an NPC.NPC_FIRST_OPTIONFirst menu action for an NPC.NPC_FOURTH_OPTIONFourth menu action for an NPC.NPC_SECOND_OPTIONSecond menu action for an NPC.NPC_THIRD_OPTIONThird menu action for an NPC.PLAYER_EIGHTH_OPTIONPLAYER_FIFTH_OPTIONPLAYER_FIRST_OPTIONPLAYER_FOURTH_OPTIONPLAYER_SECOND_OPTIONPLAYER_SEVENTH_OPTIONPLAYER_SIXTH_OPTIONPLAYER_THIRD_OPTIONRUNELITEMenu action injected by runelite for its menu items.RUNELITE_HIGH_PRIORITYMenu action for high priority runelite optionsRUNELITE_INFOBOXMenu action for InfoBox menu entriesRUNELITE_LOW_PRIORITYLikeRUNELITE, except clicking always forces the menu open.RUNELITE_OVERLAYMenu action injected by runelite for overlay menu items.RUNELITE_OVERLAY_CONFIGMenu action for configuring runelite overlays.RUNELITE_PLAYERMenu action injected by runelite for menu items which target a player and have its identifier set to a player index.RUNELITE_WIDGETRuneLite menu that is a widge.UNKNOWNMenu action triggered when the id is not defined in this class.WALKMenu action for walking.WIDGET_CLOSEPerforms an ifclose.WIDGET_CONTINUEPerforms a ContinueWIDGET_FIFTH_OPTIONFifth menu action for a widget.WIDGET_FIRST_OPTIONFirst menu action for a widget.WIDGET_FOURTH_OPTIONFourth menu action for a widget.WIDGET_SECOND_OPTIONSecond menu action for a widget.WIDGET_TARGETSelect the widget for targeting other widgets/entites etc.WIDGET_TARGET_ON_GAME_OBJECTMenu action for using a widget on a tile object (GameObject or GroundObject).WIDGET_TARGET_ON_GROUND_ITEMMenu action for using a widget on an item on the ground.WIDGET_TARGET_ON_NPCMenu action for using a widget on an NPC.WIDGET_TARGET_ON_PLAYERMenu action for using a widget on a player.WIDGET_TARGET_ON_WIDGETUsing a widget on another widgetWIDGET_THIRD_OPTIONThird menu action for a widget.WIDGET_TYPE_1Interaction with widget (type 1).WIDGET_TYPE_4Interaction with widget (type 4).WIDGET_TYPE_5Interaction with widget (type 5).WIDGET_USE_ON_ITEMDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static intMENU_ACTION_DEPRIORITIZE_OFFSETstatic MenuActionPLAYER_EIGTH_OPTIONDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()static MenuActionof(int id)static MenuActionvalueOf(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)
-
-