Enum Rune
- java.lang.Object
-
- java.lang.Enum<Rune>
-
- com.runemate.game.api.hybrid.local.Rune
-
-
Field Summary
Fields Modifier and Type Field Description int
pouchType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
int
getQuantity()
int
getQuantity(java.util.List<SpriteItem> provider)
Returns the quantity of the runes available from the players inventory, RunePouch, and equipment from staves.java.util.Set<Rune>
getReplacedRunes()
java.util.List<Rune>
getReplacingRunes()
boolean
isCombinationRune()
static Rune
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Rune[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AIR
public static final Rune AIR
-
WATER
public static final Rune WATER
-
EARTH
public static final Rune EARTH
-
FIRE
public static final Rune FIRE
-
MIND
public static final Rune MIND
-
CHAOS
public static final Rune CHAOS
-
DEATH
public static final Rune DEATH
-
BLOOD
public static final Rune BLOOD
-
COSMIC
public static final Rune COSMIC
-
NATURE
public static final Rune NATURE
-
LAW
public static final Rune LAW
-
BODY
public static final Rune BODY
-
SOUL
public static final Rune SOUL
-
ASTRAL
public static final Rune ASTRAL
-
MIST
public static final Rune MIST
-
MUD
public static final Rune MUD
-
DUST
public static final Rune DUST
-
LAVA
public static final Rune LAVA
-
STEAM
public static final Rune STEAM
-
SMOKE
public static final Rune SMOKE
-
WRATH
public static final Rune WRATH
-
-
Method Detail
-
values
public static Rune[] 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 (Rune c : Rune.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Rune 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
-
getName
public java.lang.String getName()
-
isCombinationRune
public boolean isCombinationRune()
- Returns:
- true if this Rune replaces other Runes.
-
getQuantity
public int getQuantity(java.util.List<SpriteItem> provider)
Returns the quantity of the runes available from the players inventory, RunePouch, and equipment from staves.This is a mildly expensive call.
- Parameters:
provider
- The List of SpriteItems to get the total quantity of- Returns:
- the number of runes available for use or Integer.MAX_VALUE if using an item providing unlimited runes.
-
getQuantity
public int getQuantity()
-
getReplacedRunes
public java.util.Set<Rune> getReplacedRunes()
- Returns:
- the runes that the rune instance replaces, empty if not a combo rune. eg. if this is a MIST rune, return AIR and WATER
-
getReplacingRunes
public java.util.List<Rune> getReplacingRunes()
- Returns:
- the runes that replace the rune instance, empty if a combo rune or has no replacements. eg. if this is a WATER rune, return MIST, MUD and STEAM
-
-