ChatColorType

Methods
7
Fields
2

Getting one

ChatColorType.valueOf(…)
ChatColorType.NORMAL
ChatColorType.HIGHLIGHT

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

Fields

FieldTypeDescription
NORMALChatColorTypeNORMAL: ordinal 0.
HIGHLIGHTChatColorTypeHIGHLIGHT: ordinal 1.

Returned by

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

equals

equals: (ChatColorType, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {ChatColorType}

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) -> ChatColorType

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