跳到正文

CoreLib

作者:SCsupercraft

A library mod for data handling.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

CoreLib 支持哪些 Minecraft 版本?

CoreLib 支持 Minecraft Java 版 1.21.8,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

CoreLib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

SCsupercraft 的其他作品

查看全部 →