mc_protocol v0.0.2 McProtocol.Packet.Decoder

Events emitted

Handshake

From client

  • {:set_mode, mode} - Set the next protocol state. One of :Status or :Login

Status

From client

  • {:start_ping} - Indicates the start of a new ping exchange. Should respond with :server_info
  • {:ping, time} - Should reply with the same event.

Login

From client

  • {:start_login, username} - Indicates the start of a player login.

Summary

Functions

decode(packet)