⚙️ NBT#
Usage Example#
from scfile import formats
with formats.nbt.NbtDecoder("path/to/itemnames.dat") as nbt:
data = nbt.decode()
with formats.json.JsonEncoder(data) as json:
json.encode().save("output.json")
Decoder#
- class NbtDecoder(file, options=None)[source]#
Bases:
FileDecoder[NbtContent],StructFileIO- format: FileFormat = 'nbt'#
- order: ByteOrder = '<'#
Enums#
IO#
- class NbtBytesIO(initial_bytes=b'')[source]#
Bases:
StructBytesIO