LootRecordType

Methods
7
Fields
5

Getting one

LootRecordType.valueOf(…)
LootRecordType.NPC
LootRecordType.PLAYER

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(LootRecordType)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){LootRecordType}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)LootRecordTypevalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
NPCLootRecordTypeNPC: ordinal 0.
PLAYERLootRecordTypePLAYER: ordinal 1.
EVENTLootRecordTypeEVENT: ordinal 2.
PICKPOCKETLootRecordTypePICKPOCKET: ordinal 3.
UNKNOWNLootRecordTypeUNKNOWN: ordinal 4.

Returned by

MethodReturnsDescription
LootRecordTypeClass.valueOfLootRecordTypevalueOf(name): the constant named name; any other name is an error.
LootRecordTypeClass.values{LootRecordType}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: () -> {LootRecordType}

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

valueOf: (string) -> LootRecordType

valueOf(name): the constant named name; any other name is an error.