Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
CoreLib is a library mod for data handling.
Features
Extra codecs
CoreLib comes with new codecs for classes including, but not limited to:
- BigInteger
- BigDecimal
- GameProfile
- OptionalLong
- RegistryKey
- TagKey
Automatic codec generation
CoreLib can automatically resolve codecs for given classes, including generic classes with type parameters.
It can also dynamically create new codecs for any enum, as well almost any record.
CoreLib can resolve a codec for a record as long as it can also resolve a codec for all the record's components.
Automatic data saving / loading
CoreLib also features a SaveData<T> class, which handles saving and loading data to and from the disk. Certain classes that extend from this class automatically save and load your data. One is meant for data attached to an instance (modpack), while the other is meant for data attached to each world (save file).
Automatic data synchronisation
CoreLib includes a SyncedData<T> class, for automatically synchronising data to client through a utility class called Synchronisation.
CoreLib includes SaveData<T> classes that implement this interface and are automatically synced to all clients.



