Implements the Minecraft protocol.