INBTItem.decode

Decodes the item from a ubyte[] that can be compressed and/or read without name and TAG ID and stores the results in this.

interface INBTItem
void
decode
(
ubyte[] data
,
bool compressed = true
,
bool hasName = true
)

Parameters

compressed bool

When true, the ubyte[] will get uncompressed for decoding.

hasName bool

When false, reading won't try to read a name and this.name will be set to "".

Meta