Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Abstract Operations

Abstract Operations

Json <-> NBT interchange library

964
2
Library
AboutChangelogVersions

a library for easy and lossless interchange between JSON and NBT.

provides a class GenericX for each NbtX (GenericCompound extends HashMap, GenericList extends ArrayList), each supporting functions json()l, nbt(), and map(func) allowing conversion or tree mapping.

supplies a DynamicOps instance (GenericOps) made for easy conversion from json and nbt to generic, with flags to patch the formats to allow lossless conversion. with patchjson enabled, number sizes can be specified in-json by providing a string eg "10b" in the same format as snbt number tags, and lists of numbers are automatically translated to number arrays. patchnbt translates bytes 0-1 into booleans.

versions 1.1.0 and higher also provide explicit support for wispforest's Endec library

reference source for details!

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.1

Platforms

Fabric
Forge
NeoForge
Quilt

Supported environments

Server-side

Links

Report issues View source

Creators

queenofthebees
queenofthebees Queen of the Bees

Details

Licensed WTFPL
Published 5 months ago
Updated 4 weeks ago

Modrinth is open source.

main@fafd47f

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.