name
name: (IconID) -> stringThe constant's name as declared.
IconID.valueOf(…)
IconID.PLAYER_MODERATOR
IconID.JAGEX_MODERATOR| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | This enum's own text for the constant, which can differ from name(); tostring(c) answers the same. |
compareTo(IconID) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getIndex() | number | This constant's getIndex() value, listed on each constant. |
values() | {IconID} | 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) | IconID | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
PLAYER_MODERATOR | IconID | PLAYER_MODERATOR: ordinal 0; getIndex() 0. |
JAGEX_MODERATOR | IconID | JAGEX_MODERATOR: ordinal 1; getIndex() 1. |
IRONMAN | IconID | IRONMAN: ordinal 2; getIndex() 2. |
ULTIMATE_IRONMAN | IconID | ULTIMATE_IRONMAN: ordinal 3; getIndex() 3. |
DMM_SKULL_5_KEYS | IconID | DMM_SKULL_5_KEYS: ordinal 4; getIndex() 4. |
DMM_SKULL_4_KEYS | IconID | DMM_SKULL_4_KEYS: ordinal 5; getIndex() 5. |
DMM_SKULL_3_KEYS | IconID | DMM_SKULL_3_KEYS: ordinal 6; getIndex() 6. |
DMM_SKULL_2_KEYS | IconID | DMM_SKULL_2_KEYS: ordinal 7; getIndex() 7. |
DMM_SKULL_1_KEYS | IconID | DMM_SKULL_1_KEYS: ordinal 8; getIndex() 8. |
SKULL | IconID | SKULL: ordinal 9; getIndex() 9. |
HARDCORE_IRONMAN | IconID | HARDCORE_IRONMAN: ordinal 10; getIndex() 10. |
NO_ENTRY | IconID | NO_ENTRY: ordinal 11; getIndex() 11. |
CHAIN_LINK | IconID | CHAIN_LINK: ordinal 12; getIndex() 12. |
BOUNTY_HUNTER_EMBLEM | IconID | BOUNTY_HUNTER_EMBLEM: ordinal 13; getIndex() 20. |
LEAGUE | IconID | LEAGUE: ordinal 14; getIndex() 22. |
GROUP_IRONMAN | IconID | GROUP_IRONMAN: ordinal 15; getIndex() 41. |
HARDCORE_GROUP_IRONMAN | IconID | HARDCORE_GROUP_IRONMAN: ordinal 16; getIndex() 42. |
UNRANKED_GROUP_IRONMAN | IconID | UNRANKED_GROUP_IRONMAN: ordinal 17; getIndex() 43. |
| Method | Returns | Description |
|---|---|---|
IconIDClass.valueOf | IconID | valueOf(name): the constant named name; any other name is an error. |
IconIDClass.values | {IconID} | 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: (IconID) -> stringThe constant's name as declared.
ordinalordinal: (IconID) -> numberThe constant's 0-based position in values().
toStringtoString: (IconID) -> stringThis enum's own text for the constant, which can differ from name(); tostring(c) answers the same.
compareTocompareTo: (IconID, IconID) -> numberThis ordinal less other's.
equalsequals: (IconID, any) -> booleanWhether other is this constant. == answers the same.
getIndexgetIndex: (IconID) -> numberThis constant's getIndex() value, listed on each constant.
valuesvalues: () -> {IconID}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) -> IconIDvalueOf(name): the constant named name; any other name is an error.