name
name: (EquipmentInventorySlot) -> stringThe constant's name as declared.
EquipmentInventorySlot.valueOf(…)
EquipmentInventorySlot.HEAD
EquipmentInventorySlot.CAPE| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(EquipmentInventorySlot) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getSlotIdx() | number | This 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) | EquipmentInventorySlot | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
HEAD | EquipmentInventorySlot | HEAD: ordinal 0; getSlotIdx() 0. |
CAPE | EquipmentInventorySlot | CAPE: ordinal 1; getSlotIdx() 1. |
AMULET | EquipmentInventorySlot | AMULET: ordinal 2; getSlotIdx() 2. |
WEAPON | EquipmentInventorySlot | WEAPON: ordinal 3; getSlotIdx() 3. |
BODY | EquipmentInventorySlot | BODY: ordinal 4; getSlotIdx() 4. |
SHIELD | EquipmentInventorySlot | SHIELD: ordinal 5; getSlotIdx() 5. |
ARMS | EquipmentInventorySlot | ARMS: ordinal 6; getSlotIdx() 6. |
LEGS | EquipmentInventorySlot | LEGS: ordinal 7; getSlotIdx() 7. |
HAIR | EquipmentInventorySlot | HAIR: ordinal 8; getSlotIdx() 8. |
GLOVES | EquipmentInventorySlot | GLOVES: ordinal 9; getSlotIdx() 9. |
BOOTS | EquipmentInventorySlot | BOOTS: ordinal 10; getSlotIdx() 10. |
JAW | EquipmentInventorySlot | JAW: ordinal 11; getSlotIdx() 11. |
RING | EquipmentInventorySlot | RING: ordinal 12; getSlotIdx() 12. |
AMMO | EquipmentInventorySlot | AMMO: ordinal 13; getSlotIdx() 13. |
| Method | Returns | Description |
|---|---|---|
EquipmentInventorySlotClass.valueOf | EquipmentInventorySlot | valueOf(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. |
namename: (EquipmentInventorySlot) -> stringThe constant's name as declared.
ordinalordinal: (EquipmentInventorySlot) -> numberThe constant's 0-based position in values().
toStringtoString: (EquipmentInventorySlot) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (EquipmentInventorySlot, EquipmentInventorySlot) -> numberThis ordinal less other's.
equalsequals: (EquipmentInventorySlot, any) -> booleanWhether other is this constant. == answers the same.
getSlotIdxgetSlotIdx: (EquipmentInventorySlot) -> numberThis constant's getSlotIdx() value, listed on each constant.
valuesvalues: () -> {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.
valueOfvalueOf: (string) -> EquipmentInventorySlotvalueOf(name): the constant named name; any other name is an error.