public enum EquipmentSlot extends java.lang.Enum<EquipmentSlot>
Enum Constant and Description |
---|
AMULET |
ARROWS |
CAPE |
CHEST |
FEET |
HANDS |
HAT |
LEGS |
RING |
SHIELD |
WEAPON |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlot |
forRealSlotId(int id)
Gets the
EquipmentSlot for a given id |
static EquipmentSlot |
forSlotId(int id)
Gets the
EquipmentSlot for a given id |
int |
getSlotId()
Gets the slot index.
|
static EquipmentSlot |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EquipmentSlot HAT
public static final EquipmentSlot CAPE
public static final EquipmentSlot AMULET
public static final EquipmentSlot WEAPON
public static final EquipmentSlot CHEST
public static final EquipmentSlot SHIELD
public static final EquipmentSlot LEGS
public static final EquipmentSlot HANDS
public static final EquipmentSlot FEET
public static final EquipmentSlot RING
public static final EquipmentSlot ARROWS
public final int slot
public final int realSlot
public final int childId
public static EquipmentSlot[] values()
for (EquipmentSlot c : EquipmentSlot.values()) System.out.println(c);
public static EquipmentSlot valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getSlotId()
public static EquipmentSlot forSlotId(int id)
EquipmentSlot
for a given idid
- the id of the EquipmentSlot
EquipmentSlot
for a given idpublic static EquipmentSlot forRealSlotId(int id)
EquipmentSlot
for a given idid
- the id of the EquipmentSlot
EquipmentSlot
for a given id