EquipmentInventorySlot

Methods
8
Fields
14

Getting one

EquipmentInventorySlot.valueOf(…)
EquipmentInventorySlot.HEAD
EquipmentInventorySlot.CAPE

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringname(); tostring(c) answers the same.
compareTo(EquipmentInventorySlot)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getSlotIdx()numberThis constant's getSlotIdx() value, listed on each constant.
values(){EquipmentInventorySlot}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOf(string)EquipmentInventorySlotvalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
CAPEEquipmentInventorySlotCAPE: ordinal 1; getSlotIdx() 1.
AMULETEquipmentInventorySlotAMULET: ordinal 2; getSlotIdx() 2.
WEAPONEquipmentInventorySlotWEAPON: ordinal 3; getSlotIdx() 3.
BODYEquipmentInventorySlotBODY: ordinal 4; getSlotIdx() 4.
SHIELDEquipmentInventorySlotSHIELD: ordinal 5; getSlotIdx() 5.
ARMSEquipmentInventorySlotARMS: ordinal 6; getSlotIdx() 6.
LEGSEquipmentInventorySlotLEGS: ordinal 7; getSlotIdx() 7.
HAIREquipmentInventorySlotHAIR: ordinal 8; getSlotIdx() 8.
GLOVESEquipmentInventorySlotGLOVES: ordinal 9; getSlotIdx() 9.
BOOTSEquipmentInventorySlotBOOTS: ordinal 10; getSlotIdx() 10.
JAWEquipmentInventorySlotJAW: ordinal 11; getSlotIdx() 11.
RINGEquipmentInventorySlotRING: ordinal 12; getSlotIdx() 12.
AMMOEquipmentInventorySlotAMMO: ordinal 13; getSlotIdx() 13.

Returned by

MethodReturnsDescription
EquipmentInventorySlotClass.valueOfEquipmentInventorySlotvalueOf(name): the constant named name; any other name is an error.
EquipmentInventorySlotClass.values{EquipmentInventorySlot}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

Method details

values

values: () -> {EquipmentInventorySlot}

Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.