跳到正文

Advanced Interaction Events

作者:samuelh2005

A Minecraft library for registering and handling custom interaction events, including click actions and other player interactions. Useful for when working with Minecraft's Dialog framework and custom event handling.

收藏

介绍

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

Advanced Interaction Events

A Minecraft library for registering and handling custom interaction events, including click actions and other player interactions. Useful for when working with Minecraft’s Dialog framework and custom event handling.

Features

  1. Flexible event handler types using the EventHandlerType registry, preventing event handler conflicts.
  2. Codec-based EventData serialisation for user specified event data, instead of manual NBT parsing.
  3. Server-side event handler dispatch for custom click-action packets, avoiding the need for hardcoded mixins.

Roadmap

  1. Add support for custom text click events.
  2. Allow entity interaction events to be registered and handled.

Compatibility

This library is compatible with Minecraft 26.2, Fabric Loader 0.19.5 or newer, and Java 25 or newer.

Usage

For demonstration on how to use this library, check my Enhanced Lobby mod.

License

This project is license under the GNU Lesser General Public License v3.0 or later. See the LICENSE file for more details.

常见问题

Advanced Interaction Events 支持哪些 Minecraft 版本?

Advanced Interaction Events 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Advanced Interaction Events 怎么安装?

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

评论

登录后评论和评分

samuelh2005 的其他作品

查看全部 →