Enum MenuItem.Type
- java.lang.Object
-
- java.lang.Enum<MenuItem.Type>
-
- com.runemate.game.api.hybrid.local.hud.MenuItem.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MenuItem.Type>
- Enclosing class:
- MenuItem
public static enum MenuItem.Type extends java.lang.Enum<MenuItem.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL
COORDINATE
GAME_OBJECT
GROUND_ITEM
INTERFACE
INTERFACE_BUTTON
NPC
PLAYER
SPRITE_GRID
WALK_HERE
WORLD_MAP_ICON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable MenuItem.Type
getByOpcode(int opcode)
@Nullable Interactable
resolve(int opcode, int identifier, int param0, int param1)
java.lang.String
toString()
static MenuItem.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MenuItem.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GAME_OBJECT
public static final MenuItem.Type GAME_OBJECT
-
NPC
public static final MenuItem.Type NPC
-
PLAYER
public static final MenuItem.Type PLAYER
-
GROUND_ITEM
public static final MenuItem.Type GROUND_ITEM
-
WALK_HERE
public static final MenuItem.Type WALK_HERE
-
INTERFACE_BUTTON
public static final MenuItem.Type INTERFACE_BUTTON
-
SPRITE_GRID
public static final MenuItem.Type SPRITE_GRID
-
INTERFACE
public static final MenuItem.Type INTERFACE
-
COORDINATE
public static final MenuItem.Type COORDINATE
-
CANCEL
public static final MenuItem.Type CANCEL
-
WORLD_MAP_ICON
public static final MenuItem.Type WORLD_MAP_ICON
-
-
Method Detail
-
values
public static MenuItem.Type[] 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 (MenuItem.Type c : MenuItem.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuItem.Type 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
-
getByOpcode
@Nullable public static @Nullable MenuItem.Type getByOpcode(int opcode)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<MenuItem.Type>
-
resolve
@Nullable public @Nullable Interactable resolve(int opcode, int identifier, int param0, int param1)
-
-