Download CoreLib — Minecraft Mods — MetaMods

CoreLib

Active

Downloads

0

Last update

2 weeks ago

Versions

1.21.8
Client and server
Fabric
Neoforge
Libraries

CoreLib - Data Handling Library

CoreLib is a specialized library for data processing in Minecraft, providing developers with powerful tools for working with various types of information.

Extended Encoding Capabilities

The mod includes additional codecs for working with various classes, among which are:

  • BigInteger
  • BigDecimal
  • GameProfile
  • OptionalLong
  • RegistryKey
  • TagKey

Automatic Codec Generation

One of the key features of CoreLib is its ability to automatically generate codecs for specified classes. The system supports working with generic classes containing type parameters. The library can dynamically create new codecs for almost any enumeration and most records.

For successful creation of a record codec, it is necessary that CoreLib can determine codecs for all components of that record.

Automatic Data Saving and Loading

CoreLib includes the SaveData<T> class, which automatically manages the processes of saving and loading data to and from disk. Classes inheriting from this base class receive automatic functionality for saving and restoring data. One option is intended for data associated with an instance (modpack), while the other is for data tied to each individual world (save file).

Automatic Data Synchronization

The library contains the SyncedData<T> class, providing automatic data synchronization with the client through the auxiliary class Synchronisation. Some implementations of SaveData<T> support this interface and are automatically synchronized with all connected clients.

Project members
SCsupercraft

SCsupercraft

Developer

Created: 27 Sep 2025

ID: 268557