Package net.runelite.api
Enum DialogOption
- java.lang.Object
-
- java.lang.Enum<DialogOption>
-
- net.runelite.api.DialogOption
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DialogOption>
public enum DialogOption extends java.lang.Enum<DialogOption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHAT_OPTION_FIVECHAT_OPTION_FOURCHAT_OPTION_ONECHAT_OPTION_THREECHAT_OPTION_TWOITEM_ONEITEM_TWONPC_CONTINUEPLAIN_CONTINUEPLAIN_CONTINUE_TWOPLAYER_CONTINUEQUEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMenuIndex()intgetWidgetUid()static DialogOptionof(int widgetUid, int menuIndex)static DialogOptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DialogOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NPC_CONTINUE
public static final DialogOption NPC_CONTINUE
-
PLAYER_CONTINUE
public static final DialogOption PLAYER_CONTINUE
-
QUEST
public static final DialogOption QUEST
-
ITEM_ONE
public static final DialogOption ITEM_ONE
-
ITEM_TWO
public static final DialogOption ITEM_TWO
-
CHAT_OPTION_ONE
public static final DialogOption CHAT_OPTION_ONE
-
CHAT_OPTION_TWO
public static final DialogOption CHAT_OPTION_TWO
-
CHAT_OPTION_THREE
public static final DialogOption CHAT_OPTION_THREE
-
CHAT_OPTION_FOUR
public static final DialogOption CHAT_OPTION_FOUR
-
CHAT_OPTION_FIVE
public static final DialogOption CHAT_OPTION_FIVE
-
PLAIN_CONTINUE
public static final DialogOption PLAIN_CONTINUE
-
PLAIN_CONTINUE_TWO
public static final DialogOption PLAIN_CONTINUE_TWO
-
-
Method Detail
-
values
public static DialogOption[] 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 (DialogOption c : DialogOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DialogOption 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
-
getWidgetUid
public int getWidgetUid()
-
getMenuIndex
public int getMenuIndex()
-
of
@Nullable public static DialogOption of(int widgetUid, int menuIndex)
-
-