GitHub

您所在的位置:网站首页 生辰五行查询看五行 GitHub

GitHub

2024-02-15 01:30| 来源: 网络整理| 查看: 265

PacketWrapper

This is the official continuation of PacketWrapper by dmulloy2. The original version can be found here.

When reading and writing packets in ProtocolLib, it is necessary to know the order in which the fields are stored in memory. This requires you to decompile the Minecraft source code with JD-GUI or find it in the Spigot work directory (/work/decompile/), while decoding the meaning of a field by looking up an online wiki resource (tutorial). It would be much easier if these packets could be accessed as any other normal Java bean.

Enter PacketWrapper. It contains wrapper classes for all known packets in 1.8, providing you with access to the fields by name, along with automatic conversion to existing Bukkit enumerations and classes. It also includes a number of custom enumerations when appropriate.

You can use PacketWrapper as a dependency if you wish, although it is highly recommended that plugin authors simply copy and paste the classes they need into their project. This helps guard against future changes in PacketWrapper and makes it easier on the end user.

Resources Downloads ProtocolLib Building

You can compile this project yourself by using the latest version of Maven.

Remarks

This project was mostly generated by a script.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3