-
Notifications
You must be signed in to change notification settings - Fork 4
Compound Tag
Aram edited this page Sep 11, 2025
·
1 revision
Each cache object in Bluelib has dedicated CompoundTag utils. CompoundTag is Minecraft's core format for storing structured data in NBT (Named Binary Tag). It is used for saving entity data, block data, items, and custom cache objects. By implementing write and read methods, each cache can serialize itself to a CompoundTag and reconstruct itself later.
This allows:
- Persistent storage of cache objects in world saves or datapacks.
- Easy integration with CODECs and Minecraft’s data systems.
- Clear separation between in-memory objects and persistent formats.
-
CompoundTagis the primary NBT storage format in Minecraft. -
writeToNBTandreadFromNBTstandardize how your caches persist. - Keeping these methods inside the cache ensures encapsulation and reusability.
- Works seamlessly with CODECs, Gson deserializers, and Minecraft’s data systems.
Variant Loader
Data Pipeline
Network & Packets
Logging
Markdown
Utility Classes
- Conversion
- Math
- Minecraft
- Schedular