LeavesMC / Leaves

Fork of Paper aimed at repairing broken vanilla properties.
https://leavesmc.org
Other
325 stars 34 forks source link

fix and rewrite bytebuf api #218

Closed Lumine1909 closed 1 month ago

Lumine1909 commented 1 month ago

重写了api,适配 1.20.6 支持更多数据包,添加了数据包监听功能 所有新内容已完成本地测试 食用方法: https://github.com/Lumine1909/BytebufAPIExample

Lumine1909 commented 1 month ago

现在格式应该没问题了(吧)

Bluemangoo commented 1 month ago

我觉得除了新开一个handler以外都还好。

改成类似wrapper?

Lumine1909 commented 1 month ago

感谢反射和泛型 感谢反射和泛型 感谢反射和泛型

添加了chat component的支持,具体见 https://github.com/Lumine1909/BytebufAPIExample

Lumine1909 commented 1 month ago

我觉得除了新开一个handler以外都还好。

改成类似wrapper?

新开是因为bukkit的event实现可能有性能问题(详见群)

Bluemangoo commented 1 month ago

(详见群)

我现在够不到QQ群啊(大叫),discord and github only.

Lumine1909 commented 1 month ago

(详见群)

我现在够不到QQ群啊(大叫),discord and github only.

bkapi的 callEvent用到了反射,而packet是一个极其频繁的事件 可能导致之后