Package com.valhalla.sdk.api.equipment
Enum Class EquipmentSlot
- All Implemented Interfaces:
Serializable,Comparable<EquipmentSlot>,Constable
The eleven worn-item slots in mobile equipment-panel order.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentSlotforSlot(int slot) Resolves a native container slot.intgetSlot()Returns the native equipment-container slot.static EquipmentSlotReturns the enum constant of this class with the specified name.static EquipmentSlot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HAT
Head slot. -
CAPE
Cape slot. -
AMULET
Amulet slot. -
WEAPON
Weapon slot. -
CHEST
Body or chest slot. -
SHIELD
Shield or off-hand slot. -
LEGS
Leg slot. -
HANDS
Hand slot. -
FEET
Foot slot. -
RING
Ring slot. -
ARROWS
Ammunition slot.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getSlot
public int getSlot()Returns the native equipment-container slot.- Returns:
- slot index from 0 through 10
-
forSlot
Resolves a native container slot.- Parameters:
slot- slot index- Returns:
- matching equipment slot, or
nullwhen outside 0 through 10
-