minecraft-protocol
minecraft-protocol copied to clipboard
Protocol generator
Motivation
There are over 150 packets in Minecraft. The main disappointment in completing this crate is the implementation of game state packets . Things are getting much worse if we want to support multiple versions of Minecraft. To improve this process we are inroducing packets generation.
Implementation details
- Backend - Parses minecraft-data from json to structures.
- Frontend - Generates rust files.
- Transformers - Transforms backend data to frontend data.
- Mappings - Special mappings to rename packets and change fields type to custom.
- Templates - Helper templates for code generation.
After writing this draft i realized that we should implement thing differently. I have implemented protodef parser as separate crate. Currently i am working on packet derive to add missing features. I hope this big milestone soon will be done