Closed QuartzWarrior closed 3 years ago
There is a Mojang API, but that is not how this library works, and that API is for something different. This library communicates directly with the servers using different protocols to obtain information from them.
If you're looking for an API that can do this you should just use api.mcsrvstat.us
or something similar as there's no official Mojang API for this.
Yeah, it's not in the code because that isn't how this library works. Instead checkout https://wiki.vg/Protocol for a very detailed explanation of Minecraft protocols that this library is using.
Ok, well thanks for the quick response.
How would I use the official Minecraft API? I am using
api.mcsrvstat.us
but want to use the officialmojang
api. I am assuming this module uses it, but can't seem to find it in the code.Thanks!