Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_CeLdcY0u.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
CoryLib - 墨喵 Minecraft 资源
CoryLib 图标

CoryLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 fabric-1.21.1-1.0.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/corylib
资源信息

Minecraft 版本: 1.21.1

平台: fabric

标签: library utility

资源介绍

CoryLib⚡

A Minecraft Library for unified data storage and synchronization library for Minecraft mods.

Designed for mods that need a clean way to store, retrieve, version, and synchronize data across server, dimension, player, and client contexts.

line

So, why CoryLib? 🤷‍♂️

Minecraft mods often reimplement the same data systems over and over:

  • Dimension-specific state
  • Client preferences
  • Server-to-client sync
  • Runtime-only transient data

So CoryLib provides one fluent API for all of those cases.

public static final CoryContext DATA = CoryData.init("my_mod");

public static final DataEntry<ServerPlayer, Integer> KILLS =
        DATA.player("kills", Codec.INT)
                .defaultValue(0)
                .storage(Storage.DISK)
                .version(1)
                .sync(SyncTrigger.IMMEDIATE)
                .build();

You can check the repository for details and guides.

line

You can support by simply downloading the mod or donating me! Thanks if you do! 💕

This was made by devs, to devs ❤️
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
🔒 Supervisory

价格:0 墨喵币
下载量:0

查看详情
Redecorate

价格:0 墨喵币
下载量:0

查看详情
Tankster's Discs

价格:0 墨喵币
下载量:0

查看详情
SlipperyPlus

价格:0 墨喵币
下载量:0

查看详情