Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jocopa3/PEWS-API

A Java Websocket Server API implementation for the Pocket, Windows 10, and Education Editions of Minecraft.
https://github.com/jocopa3/PEWS-API

Last synced: about 1 month ago
JSON representation

A Java Websocket Server API implementation for the Pocket, Windows 10, and Education Editions of Minecraft.

Awesome Lists containing this project

README

        

# Pocket Edition WebSocket Server API

This API is meant to communicate with the C++ versions of Minecraft, namely Pocket Edition, Windows 10 Edition, and Education Edition using WebSockets. This is not a full multiplayer server, and does not share the same capabilities as multiplayer servers do.

Minecraft uses WebSockets to communicate with external programs (such as the Classroom Mode App for Edu Edition) and developer tools. To connect to a WebSocket server, a user must use the `/connect` or `/wsserver` commands from the in-game chat screen. Once connected, the WebSocket server can listen for telemetry events from the game and send slash-commands (i.e. like `/kill`). A full list of all telemetry events the game tracks can be found here: https://gist.github.com/jocopa3/5f718f4198f1ea91a37e3a9da468675c

Internally, Minecraft sends JSON messages through the WebSocket to communicate to servers. A basic outline of the JSON structure of each message can be found here: https://gist.github.com/jocopa3/54b42fb6361952997c4a6e38945e306f

# Build Requirements

* [Java-WebSocket](https://github.com/TooTallNate/Java-WebSocket) by TooTallNate
* [GSON](https://github.com/google/gson) by Google

Note: this project was built with JDK 1.8, but should be compatible with 1.7.