-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can find the description for switches? #863
Comments
Some history on this at #135 See also this https://github.com/PrismarineJS/minecraft-data/pull/163/files I think the best solution is to have English comments for every field and extract that from wiki.vg initially We discussed that several times over years (and even merged one version) but it's not quite done. As to why I think that's the best solution: Mojang protocol is quite convoluted, English is probably the only reasonable solution to explain what is going on in some packets (rather than some sophisticated metadata) |
Another solution is you introduce another library like mineflayer that handles abstracting away the packets so that most users never interact with them. |
I'm sorry, I don't quite understand how I'm supposed to use this. |
Yeah switch are not union types There are several possible solutions going from low investment to high investment
|
I'm trying to generate the protocol based on the specifications on this repo, but I can't tell where I should be looking to understand what's the description for switches cases.
Taking the boss_bar packet as an example, how can I tell the variants names like here (add, remove, update health, etc.)?
Right now what I managed to generate is:
Which is quite unhelpful for whomever tries to use the packet. I don't see how I could generate this better. Also I don't see how I can figure out that 1: remove is even a valid choice for this packet.
Thanks.
The text was updated successfully, but these errors were encountered: