Enum Equipment.Slot
- java.lang.Object
-
- java.lang.Enum<Equipment.Slot>
-
- com.runemate.game.api.hybrid.local.hud.interfaces.Equipment.Slot
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Equipment.Slot>
- Enclosing class:
- Equipment
public static enum Equipment.Slot extends java.lang.Enum<Equipment.Slot>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InterfaceComponent
getComponent()
int
getIndex()
static Equipment.Slot
resolve(int index)
static Equipment.Slot
resolveFromDefinition(int cacheIndex)
java.lang.String
toString()
static Equipment.Slot
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Equipment.Slot[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEAD
public static final Equipment.Slot HEAD
-
CAPE
public static final Equipment.Slot CAPE
-
NECK
public static final Equipment.Slot NECK
-
WEAPON
public static final Equipment.Slot WEAPON
-
BODY
public static final Equipment.Slot BODY
-
SHIELD
public static final Equipment.Slot SHIELD
-
LEGS
public static final Equipment.Slot LEGS
-
HANDS
public static final Equipment.Slot HANDS
-
FEET
public static final Equipment.Slot FEET
-
RING
public static final Equipment.Slot RING
-
AMMUNITION
public static final Equipment.Slot AMMUNITION
-
AURA
@Deprecated public static final Equipment.Slot AURA
Deprecated.
-
POCKET
@Deprecated public static final Equipment.Slot POCKET
Deprecated.
-
-
Method Detail
-
values
public static Equipment.Slot[] 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 (Equipment.Slot c : Equipment.Slot.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Equipment.Slot 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
-
resolveFromDefinition
public static Equipment.Slot resolveFromDefinition(int cacheIndex)
-
resolve
public static Equipment.Slot resolve(int index)
-
getComponent
public final InterfaceComponent getComponent()
-
getIndex
public final int getIndex()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Equipment.Slot>
-
-