MCPcopy Index your code
hub / github.com/PistonDevelopers/hematite_nbt

github.com/PistonDevelopers/hematite_nbt @v0.5.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.2 ↗ · + Follow
194 symbols 446 edges 14 files 45 documented · 23% updated 3y agov0.5.2 · 2021-05-15★ 9910 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hematite_nbt hematite_nbt at crates.io hematite_nbt at docs.rs Build Status

This repository contains the Hematite project's standalone nbt crate for working with Minecraft's Named Binary Tag (NBT) format.

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.

License

Licensed under the terms of the MIT license.

Core symbols most depended-on inside this repo

insert
called by 34
src/blob.rs
from_reader
called by 25
src/de.rs
assert_roundtrip_eq
called by 18
tests/serde_basics.rs
serialize
called by 17
src/blob.rs
write_header
called by 17
src/ser.rs
to_writer
called by 11
src/blob.rs
from_gzip_reader
called by 10
src/de.rs
write_bare_string
called by 7
src/raw.rs

Shape

Function 86
Method 76
Class 30
Enum 2

Languages

Rust100%

Modules by API surface

tests/serde_basics.rs40 symbols
src/ser.rs40 symbols
src/de.rs24 symbols
src/raw.rs22 symbols
src/tests.rs16 symbols
src/blob.rs16 symbols
src/value.rs11 symbols
tests/filetests.rs8 symbols
tests/serde_errors.rs7 symbols
src/error.rs6 symbols
examples/nbtprint.rs2 symbols
benches/filetests.rs2 symbols

For agents

$ claude mcp add hematite_nbt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact