Enum PotionDuration
- java.lang.Object
-
- java.lang.Enum<PotionDuration>
-
- net.runelite.client.plugins.itemstats.potions.PotionDuration
-
- All Implemented Interfaces:
Serializable
,Comparable<PotionDuration>
public enum PotionDuration extends Enum<PotionDuration>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PotionDuration.PotionDurationRange
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PotionDuration
get(int id)
PotionDuration.PotionDurationRange[]
getDurationRanges()
static PotionDuration
valueOf(String name)
Returns the enum constant of this type with the specified name.static PotionDuration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANTIPOISON
public static final PotionDuration ANTIPOISON
-
SUPERANTIPOISON
public static final PotionDuration SUPERANTIPOISON
-
ANTIDOTE_P
public static final PotionDuration ANTIDOTE_P
-
ANTIDOTE_PP
public static final PotionDuration ANTIDOTE_PP
-
ANTIVENOM
public static final PotionDuration ANTIVENOM
-
ANTIVENOM_P
public static final PotionDuration ANTIVENOM_P
-
ANTIFIRE
public static final PotionDuration ANTIFIRE
-
EXTENDED_ANTIFIRE
public static final PotionDuration EXTENDED_ANTIFIRE
-
SUPER_ANTIFIRE
public static final PotionDuration SUPER_ANTIFIRE
-
EXTENDED_SUPER_ANTIFIRE
public static final PotionDuration EXTENDED_SUPER_ANTIFIRE
-
ANTIPOISON_MIX
public static final PotionDuration ANTIPOISON_MIX
-
ANTIPOISON_SUPERMIX
public static final PotionDuration ANTIPOISON_SUPERMIX
-
ANTIDOTE_PLUS_MIX
public static final PotionDuration ANTIDOTE_PLUS_MIX
-
EXTENDED_ANTIFIRE_MIX
public static final PotionDuration EXTENDED_ANTIFIRE_MIX
-
SUPER_ANTIFIRE_MIX
public static final PotionDuration SUPER_ANTIFIRE_MIX
-
EXTENDED_SUPER_ANTIFIRE_MIX
public static final PotionDuration EXTENDED_SUPER_ANTIFIRE_MIX
-
-
Method Detail
-
values
public static PotionDuration[] 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 (PotionDuration c : PotionDuration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PotionDuration 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
-
get
public static PotionDuration get(int id)
-
getDurationRanges
public PotionDuration.PotionDurationRange[] getDurationRanges()
-
-