List of events and packets
Is there any list of parameters for:
- proxy.on,
- client.on, and
- client.write
Hi, as you may have noticed I haven't committed to this repo in a long time, that's because I'm no longer maintaining this project and I don't really recommend using it.
Anyways I gave a quick look at the code and it looks like the client object is an instance of Client from node-minecraft-protocol.
You can take a look at their docs for the list of events emitted by client.on.
You can find a list of all the packets in the Minecraft protocol, that you can pass to client.write, here: https://minecraft-data.prismarine.js.org/?d=protocol
As for proxy.on I should have documented the events when I wrote this package, but I didn't, and I won't do it now because I'm not maintaining this anymore.
So I'll leave it to you to discover them, just look for this.emit() calls in Proxy.js.