INBTItem.encode

Encodes the item to a ubyte[] that can be compressed and/or written without name and TAG ID.

interface INBTItem
ubyte[]
encode
(
bool compressed = true
,
bool hasName = true
)

Parameters

compressed bool

When true, the resulting ubyte[] will be GZip compressed.

hasName bool

When false, name and TAG ID will be omitted.

Meta