TemporaChatRegistry

基本信息

属性 值
类名 com.colen.tempora.chat.TemporaChatRegistry

功能

集中管理本 mod 的自定义聊天组件类型,把 ChatComponentTimeAbsolute 与 ChatComponentTimeRelative 注册到 GTNHLib 的聊天组件体系, 使其能在客户端被正确序列化和渲染。

实现要点

  • 两个时间组件继承 GTNHLib 的 AbstractChatComponentCustom / AbstractChatComponentNumber, 属于跨端组件:服务端构造、客户端渲染。

相关条目