Skip to content

@zikeji/hypixel / transformItemData

Function: transformItemData() ​

transformItemData(value): Promise<NBTInventory>

This helper will transform NBT data into a typed object using prismarine-nbt. It will also transform any backpacks/bags with item data so you can explore those as well.

Parameters ​

value ​

A Base64 item data string, NBT byte array, or buffer.

string | number[] | Buffer<ArrayBufferLike>

Returns ​

Promise<NBTInventory>

Released under the MIT License.