Crates.io | bedrock-hematite-nbt |
lib.rs | bedrock-hematite-nbt |
version | 0.4.2 |
source | src |
created_at | 2023-02-08 13:53:11.311854 |
updated_at | 2023-02-08 13:53:11.311854 |
description | A Minecraft Bedrock compatible fork of hematite-nbt, published to support other crates. A full-featured library for working with Minecraft's Named Binary Tag (NBT) file format, including Serde support. |
homepage | |
repository | https://github.com/PistonDevelopers/hematite_nbt |
max_upload_size | |
id | 779660 |
size | 133,835 |
This repository contains the Hematite project's
standalone nbt
crate for working with Minecraft's Named Binary Tag
(NBT) format.
This repository is a fork of hematite-nbt, implementing ocecaco's bedrock compatible fork + additional patches necessary to get the library working with serde ^1, and a few other minor bug tweaks.
This crate is published to crates.io under bedrock-hematite-nbt
This is not the only NBT-related crate available, but it has some notable features:
Full support for serializing and deserializing types via Serde.
This means that you can read and write the NBT binary format of any struct
annotated with the standard #[derive(Serialize, Deserialize)]
traits
(provided it actually has a valid NBT representation).
An API that attempts to differentiate between complete and partial NBT objects
via nbt::Blob
and nbt::Value
. Only complete objects can be serialized.
Support for the TAG_Long_Array
data introduced in Minecraft 1.12.
Support for the modified UTF-8 encoding used by the vanilla Minecraft client.
Licensed under the terms of the MIT license.