Slot

Informations about a slot, that, if not empty, contains an item id and meta, the count (0-255) and, optionally, an nbt tag for enchantments, custom name, colours and more.

Members

Functions

decode
void decode(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
void encode(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

FIELDS
enum string[] FIELDS;
Undocumented in source.
id
int id;

Item's id or 0 if the slot is empty.

metaAndCount
int metaAndCount;

Item's meta or uses (unsigned short) left-shifted 8 times and the count (unisgned byte).

nbt
ubyte[] nbt;

Optional nbt data encoded as a nameless little-endian compound tag.

Meta