Skip to content

API reference / @jsprismarine/protocol / CommandEnum

Class: CommandEnum ​

Defined in: protocol/src/wire/structures/CommandEnum.ts:2

A named command value table referenced by command aliases or parameters.

Constructors ​

Constructor ​

new CommandEnum(): CommandEnum

Returns ​

CommandEnum

Properties ​

name ​

name: string

Defined in: protocol/src/wire/structures/CommandEnum.ts:4

Table name as referenced by a command parameter or update packet.


soft? ​

optional soft?: boolean = false

Defined in: protocol/src/wire/structures/CommandEnum.ts:8

True when the client may update the values with UpdateSoftEnumPacket.


values ​

values: string[]

Defined in: protocol/src/wire/structures/CommandEnum.ts:6

Values in the order used by this table's packet-local indices.