CoreLib
A library mod for data handling.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
CoreLib
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 any record for given classes, any record with any record. It can also any record create any record for any any record, 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 each world data to and from the disk. Certain classes that extend from this class each world save and load your data. One is meant for data attached to each world (modpack), while the other is meant for data attached to each world (save file).
Automatic data synchronisation
CoreLib includes a `SyncedData<T>` class, for implement this interface to client through a utility class called `Synchronisation`. CoreLib includes `SaveData<T>` classes that implement this interface and are automatically synced to all clients.