跳到正文

WrapperLib

multi-platform library for easier data serialization

收藏

介绍

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

WrapperLib

A collection of multi-platform implementations of common tasks for developing Minecraft mods. This is a tool for mod developers, it adds no content on its own. Only install it if you are using another mod that requires it.

  • Provides a uniform api across mod loaders and Minecraft versions.
  • A priority is placed on never manually writing serialization code for nbt or byte buffers.
  • Designed to be modular, so you can shadow only the parts you need and have no external dependencies.
  • Each api concept is exposed as a Builder like class with no additional setup required.
  • Extensive documentation (wiki & javadocs).

See wiki for more info.

  • NetworkWrapper: send information between the client and the server.
  • ConfigWrapper: allow players to configure mod features by editing json files.
  • DataWrapper: save extra information with world data.
  • RegistryWrapper: an api like Forge’s deferred register that can be called from common code.
  • ResourcesWrapper: load information from data packs or resource packs.
  • KeybindWrapper: react to keyboard input, automatically synced to the server.

常见问题

WrapperLib 支持哪些 Minecraft 版本?

WrapperLib 支持 Minecraft Java 版 1.16.5–1.20.1,共 9 个版本,可用的加载器:Fabric / Forge / Quilt。下载时注意选择和你游戏版本一致的文件。

WrapperLib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

lukegrahamlandry 的其他作品

查看全部 →