FeatherMC/src/protocol/protocol.hjson

161 lines
3.6 KiB
Plaintext
Raw Normal View History

2020-08-01 22:53:12 +01:00
{
types :
{
aliases :
{
ProtocolState : varint
}
primitives :
{
varint : int32_t
2020-08-02 02:44:35 +01:00
string : std::string
uuid : MinecraftUUID
2020-08-04 02:39:09 +01:00
position: BlockPos
uint64 : uint64_t
int64 : int64_t
uint32 : uint32_t
int32 : int32_t
uint16 : uint16_t
int16 : int16_t
uint8 : uint8_t
int8 : int8_t
2020-08-04 02:39:29 +01:00
byte : uint8_t
2020-08-03 07:31:33 +01:00
bool : uint8_t
2020-08-01 22:53:12 +01:00
}
}
states :
{
Handholding : -1
Play : 0
Status : 1
Login : 2
}
messages :
{
handholding :
2020-08-01 22:53:12 +01:00
{
serverbound :
2020-08-01 22:53:12 +01:00
{
Handshake :
2020-08-01 22:53:12 +01:00
{
id : 0
vars :
{
protocolVersion : varint
serverIP : string[255]
port : uint16
intention : ProtocolState
}
2020-08-01 22:53:12 +01:00
}
}
}
2020-08-02 02:44:35 +01:00
status :
{
2020-08-03 07:31:33 +01:00
clientbound :
2020-08-02 02:44:35 +01:00
{
2020-08-03 07:31:33 +01:00
Response :
{
id : 0
vars :
{
2020-08-03 07:31:33 +01:00
jsonResponse : string[32767]
}
}
2020-08-03 07:31:33 +01:00
Pong :
2020-08-02 02:44:35 +01:00
{
id : 1
vars :
{
timestamp : uint64
}
2020-08-02 02:44:35 +01:00
}
}
2020-08-03 07:31:33 +01:00
serverbound :
2020-08-02 02:44:35 +01:00
{
2020-08-03 07:31:33 +01:00
Request :
2020-08-02 02:44:35 +01:00
{
id : 0
vars :
{
}
}
2020-08-03 07:31:33 +01:00
Ping :
{
id : 1
vars :
{
timestamp : uint64
}
2020-08-02 02:44:35 +01:00
}
}
2020-08-01 22:53:12 +01:00
}
login :
2020-08-01 22:53:12 +01:00
{
clientbound :
{
Disconnect :
{
id : 0
vars :
{
2020-08-03 07:31:33 +01:00
reason : string[32767]
}
}
2020-08-01 22:53:12 +01:00
Success :
{
id : 2
vars :
{
2020-08-03 07:31:33 +01:00
uuid : string[32]
username : string[16]
}
}
}
serverbound :
{
Start :
{
id : 0
vars :
{
username : string[16]
}
}
}
2020-08-01 22:53:12 +01:00
}
2020-08-03 07:31:33 +01:00
play :
{
clientbound :
{
JoinGame :
{
id : 38
vars :
{
entityId : int32
gamemode : uint8
dimension : int32
seedHash : uint64
maxPlayers : uint8
levelType : string[16]
viewDistance : varint
reducedDebugInfo : bool
enableRespawnScreen : bool
}
}
}
}
2020-08-01 22:53:12 +01:00
}
}