Skip to content
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

List of events and packets #4

Open
fakename131 opened this issue Jul 25, 2021 · 1 comment
Open

List of events and packets #4

fakename131 opened this issue Jul 25, 2021 · 1 comment

Comments

@fakename131
Copy link

Is there any list of parameters for:

  1. proxy.on,
  2. client.on, and
  3. client.write
@darcros
Copy link
Owner

darcros commented Jul 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants