Enum MenuOpcode
- java.lang.Object
-
- java.lang.Enum<MenuOpcode>
-
- com.runemate.game.api.hybrid.input.direct.MenuOpcode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MenuOpcode>
public enum MenuOpcode extends java.lang.Enum<MenuOpcode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getComponentMenuIdentifier(@NonNull InterfaceComponent component, int actionIndex)
static int
getComponentMenuIdentifier(InterfaceComponent item, java.lang.String action)
static int
getComponentMenuIdentifier(InterfaceComponent component, java.util.function.Predicate<java.lang.String> filter)
static int
getComponentMenuIdentifier(InterfaceComponent item, java.util.regex.Pattern pattern)
static @Nullable MenuOpcode
getComponentOpcode(InterfaceComponent component)
static MenuOpcode
getGameObjectOpcode(int action)
static MenuOpcode
getGameObjectOpcode(GameObject item, java.lang.String action)
static @Nullable MenuOpcode
getGameObjectOpcode(GameObject object, java.util.function.Predicate<java.lang.String> filter)
static MenuOpcode
getGameObjectOpcode(GameObject item, java.util.regex.Pattern pattern)
static MenuOpcode
getGroundItemOpcode(int action)
static MenuOpcode
getGroundItemOpcode(GroundItem item, java.lang.String action)
static @Nullable MenuOpcode
getGroundItemOpcode(GroundItem item, java.util.function.Predicate<java.lang.String> filter)
static MenuOpcode
getGroundItemOpcode(GroundItem item, java.util.regex.Pattern pattern)
int
getId()
static int
getItemActionIndex(InterfaceComponent item, java.lang.String action)
static int
getItemActionIndex(InterfaceComponent object, java.util.function.Predicate<java.lang.String> filter)
static int
getItemActionIndex(InterfaceComponent item, java.util.regex.Pattern pattern)
static @Nullable MenuOpcode
getItemOpcode(InterfaceComponent component, int action)
static MenuOpcode
getNpcOpcode(int action)
static MenuOpcode
getNpcOpcode(Npc npc, java.lang.String action)
static MenuOpcode
getNpcOpcode(Npc npc, java.util.function.Predicate<java.lang.String> filter)
static MenuOpcode
getNpcOpcode(Npc npc, java.util.regex.Pattern pattern)
static MenuOpcode
getPlayerOpcode(int action)
static MenuOpcode
getPlayerOpcode(java.lang.String action)
static MenuOpcode
getPlayerOpcode(java.util.function.Predicate<java.lang.String> filter)
static MenuOpcode
getPlayerOpcode(java.util.regex.Pattern pattern)
static MenuOpcode
of(int id)
static MenuOpcode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MenuOpcode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPONENT_TARGET_ON_GAME_OBJECT
public static final MenuOpcode COMPONENT_TARGET_ON_GAME_OBJECT
-
GAME_OBJECT_FIRST_OPTION
public static final MenuOpcode GAME_OBJECT_FIRST_OPTION
-
GAME_OBJECT_SECOND_OPTION
public static final MenuOpcode GAME_OBJECT_SECOND_OPTION
-
GAME_OBJECT_THIRD_OPTION
public static final MenuOpcode GAME_OBJECT_THIRD_OPTION
-
GAME_OBJECT_FOURTH_OPTION
public static final MenuOpcode GAME_OBJECT_FOURTH_OPTION
-
GAME_OBJECT_FIFTH_OPTION
public static final MenuOpcode GAME_OBJECT_FIFTH_OPTION
-
COMPONENT_TARGET_ON_NPC
public static final MenuOpcode COMPONENT_TARGET_ON_NPC
-
NPC_FIRST_OPTION
public static final MenuOpcode NPC_FIRST_OPTION
-
NPC_SECOND_OPTION
public static final MenuOpcode NPC_SECOND_OPTION
-
NPC_THIRD_OPTION
public static final MenuOpcode NPC_THIRD_OPTION
-
NPC_FOURTH_OPTION
public static final MenuOpcode NPC_FOURTH_OPTION
-
NPC_FIFTH_OPTION
public static final MenuOpcode NPC_FIFTH_OPTION
-
COMPONENT_TARGET_ON_GROUND_ITEM
public static final MenuOpcode COMPONENT_TARGET_ON_GROUND_ITEM
-
GROUND_ITEM_FIRST_OPTION
public static final MenuOpcode GROUND_ITEM_FIRST_OPTION
-
GROUND_ITEM_SECOND_OPTION
public static final MenuOpcode GROUND_ITEM_SECOND_OPTION
-
GROUND_ITEM_THIRD_OPTION
public static final MenuOpcode GROUND_ITEM_THIRD_OPTION
-
GROUND_ITEM_FOURTH_OPTION
public static final MenuOpcode GROUND_ITEM_FOURTH_OPTION
-
GROUND_ITEM_FIFTH_OPTION
public static final MenuOpcode GROUND_ITEM_FIFTH_OPTION
-
WALK
public static final MenuOpcode WALK
-
COMPONENT_TYPE_1
public static final MenuOpcode COMPONENT_TYPE_1
-
COMPONENT_TARGET
public static final MenuOpcode COMPONENT_TARGET
-
COMPONENT_CLOSE
public static final MenuOpcode COMPONENT_CLOSE
-
COMPONENT_TYPE_4
public static final MenuOpcode COMPONENT_TYPE_4
-
COMPONENT_TYPE_5
public static final MenuOpcode COMPONENT_TYPE_5
-
COMPONENT_CONTINUE
public static final MenuOpcode COMPONENT_CONTINUE
-
COMPONENT_FIRST_OPTION
public static final MenuOpcode COMPONENT_FIRST_OPTION
-
COMPONENT_SECOND_OPTION
public static final MenuOpcode COMPONENT_SECOND_OPTION
-
COMPONENT_THIRD_OPTION
public static final MenuOpcode COMPONENT_THIRD_OPTION
-
COMPONENT_FOURTH_OPTION
public static final MenuOpcode COMPONENT_FOURTH_OPTION
-
COMPONENT_FIFTH_OPTION
public static final MenuOpcode COMPONENT_FIFTH_OPTION
-
COMPONENT_TARGET_ON_PLAYER
public static final MenuOpcode COMPONENT_TARGET_ON_PLAYER
-
PLAYER_FIRST_OPTION
public static final MenuOpcode PLAYER_FIRST_OPTION
-
PLAYER_SECOND_OPTION
public static final MenuOpcode PLAYER_SECOND_OPTION
-
PLAYER_THIRD_OPTION
public static final MenuOpcode PLAYER_THIRD_OPTION
-
PLAYER_FOURTH_OPTION
public static final MenuOpcode PLAYER_FOURTH_OPTION
-
PLAYER_FIFTH_OPTION
public static final MenuOpcode PLAYER_FIFTH_OPTION
-
PLAYER_SIXTH_OPTION
public static final MenuOpcode PLAYER_SIXTH_OPTION
-
PLAYER_SEVENTH_OPTION
public static final MenuOpcode PLAYER_SEVENTH_OPTION
-
PLAYER_EIGHTH_OPTION
public static final MenuOpcode PLAYER_EIGHTH_OPTION
-
CC_OP
public static final MenuOpcode CC_OP
normal priority child component actions.
-
COMPONENT_TARGET_ON_COMPONENT
public static final MenuOpcode COMPONENT_TARGET_ON_COMPONENT
-
EXAMINE_OBJECT
public static final MenuOpcode EXAMINE_OBJECT
-
EXAMINE_NPC
public static final MenuOpcode EXAMINE_NPC
-
EXAMINE_ITEM_GROUND
public static final MenuOpcode EXAMINE_ITEM_GROUND
-
CANCEL
public static final MenuOpcode CANCEL
-
CC_OP_LOW_PRIORITY
public static final MenuOpcode CC_OP_LOW_PRIORITY
-
FOLLOW
public static final MenuOpcode FOLLOW
-
TRADE
public static final MenuOpcode TRADE
-
UNKNOWN
public static final MenuOpcode UNKNOWN
-
-
Method Detail
-
values
public static MenuOpcode[] 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 (MenuOpcode c : MenuOpcode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuOpcode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()
-
of
public static MenuOpcode of(int id)
-
getPlayerOpcode
public static MenuOpcode getPlayerOpcode(java.util.function.Predicate<java.lang.String> filter)
-
getPlayerOpcode
public static MenuOpcode getPlayerOpcode(java.util.regex.Pattern pattern)
-
getPlayerOpcode
public static MenuOpcode getPlayerOpcode(java.lang.String action)
-
getPlayerOpcode
public static MenuOpcode getPlayerOpcode(int action)
-
getNpcOpcode
public static MenuOpcode getNpcOpcode(Npc npc, java.util.function.Predicate<java.lang.String> filter)
-
getNpcOpcode
public static MenuOpcode getNpcOpcode(Npc npc, java.util.regex.Pattern pattern)
-
getNpcOpcode
public static MenuOpcode getNpcOpcode(Npc npc, java.lang.String action)
-
getNpcOpcode
public static MenuOpcode getNpcOpcode(int action)
-
getGroundItemOpcode
@Nullable public static @Nullable MenuOpcode getGroundItemOpcode(GroundItem item, java.util.function.Predicate<java.lang.String> filter)
-
getGroundItemOpcode
public static MenuOpcode getGroundItemOpcode(GroundItem item, java.util.regex.Pattern pattern)
-
getGroundItemOpcode
public static MenuOpcode getGroundItemOpcode(GroundItem item, java.lang.String action)
-
getGroundItemOpcode
public static MenuOpcode getGroundItemOpcode(int action)
-
getGameObjectOpcode
public static MenuOpcode getGameObjectOpcode(GameObject item, java.util.regex.Pattern pattern)
-
getGameObjectOpcode
public static MenuOpcode getGameObjectOpcode(GameObject item, java.lang.String action)
-
getGameObjectOpcode
@Nullable public static @Nullable MenuOpcode getGameObjectOpcode(GameObject object, java.util.function.Predicate<java.lang.String> filter)
-
getGameObjectOpcode
public static MenuOpcode getGameObjectOpcode(int action)
-
getComponentMenuIdentifier
public static int getComponentMenuIdentifier(InterfaceComponent item, java.util.regex.Pattern pattern)
-
getComponentMenuIdentifier
public static int getComponentMenuIdentifier(InterfaceComponent item, java.lang.String action)
-
getComponentMenuIdentifier
public static int getComponentMenuIdentifier(InterfaceComponent component, java.util.function.Predicate<java.lang.String> filter)
-
getComponentMenuIdentifier
public static int getComponentMenuIdentifier(@NonNull @NonNull InterfaceComponent component, int actionIndex)
-
getComponentOpcode
@Nullable public static @Nullable MenuOpcode getComponentOpcode(InterfaceComponent component)
-
getItemActionIndex
public static int getItemActionIndex(InterfaceComponent item, java.util.regex.Pattern pattern)
-
getItemActionIndex
public static int getItemActionIndex(InterfaceComponent item, java.lang.String action)
-
getItemActionIndex
public static int getItemActionIndex(InterfaceComponent object, java.util.function.Predicate<java.lang.String> filter)
-
getItemOpcode
@Nullable public static @Nullable MenuOpcode getItemOpcode(InterfaceComponent component, int action)
-
-