Enum Equipment.Slot
- java.lang.Object
-
- java.lang.Enum<Equipment.Slot>
-
- org.rspeer.game.adapter.component.inventory.Equipment.Slot
-
- All Implemented Interfaces:
Serializable
,Comparable<Equipment.Slot>
- Enclosing class:
- Equipment
public static enum Equipment.Slot extends Enum<Equipment.Slot>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
int
getMaterial()
static Equipment.Slot
valueOf(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
-
MAINHAND
public static final Equipment.Slot MAINHAND
-
CHEST
public static final Equipment.Slot CHEST
-
OFFHAND
public static final Equipment.Slot OFFHAND
-
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
-
QUIVER
public static final Equipment.Slot QUIVER
-
-
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(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
-
getMaterial
public int getMaterial()
-
getIndex
public int getIndex()
-
-