Split ServerMessage_Position packet

This commit is contained in:
ice_iix 2020-06-27 16:43:43 -07:00
parent 81300cdf43
commit b1fef97291
18 changed files with 19 additions and 19 deletions

View File

@ -843,13 +843,13 @@ state_packets!(
/// ServerMessage is a message sent by the server. It could be from a player
/// or just a system message. The Type field controls the location the
/// message is displayed at and when the message is displayed.
packet ServerMessage_UUID {
packet ServerMessage_Sender {
field message: format::Component =,
/// 0 - Chat message, 1 - System message, 2 - Action bar message
field position: u8 =,
field sender: UUID =,
}
packet ServerMessage {
packet ServerMessage_Position {
field message: format::Component =,
/// 0 - Chat message, 1 - System message, 2 - Action bar message
field position: u8 =,

View File

@ -52,7 +52,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose

View File

@ -67,7 +67,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -67,7 +67,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -55,7 +55,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose

View File

@ -55,7 +55,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose

View File

@ -58,7 +58,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose

View File

@ -67,7 +67,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -70,7 +70,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -70,7 +70,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -70,7 +70,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -70,7 +70,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -70,7 +70,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage
0x0e => ServerMessage_Position
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -71,7 +71,7 @@ protocol_packet_ids!(
0x0c => BlockChange_VarInt
0x0d => BossBar
0x0e => ServerDifficulty_Locked
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => TabCompleteReply
0x12 => DeclareCommands

View File

@ -71,7 +71,7 @@ protocol_packet_ids!(
0x0b => BlockChange_VarInt
0x0c => BossBar
0x0d => ServerDifficulty_Locked
0x0e => ServerMessage_UUID
0x0e => ServerMessage_Sender
0x0f => MultiBlockChange_VarInt
0x10 => TabCompleteReply
0x11 => DeclareCommands

View File

@ -38,7 +38,7 @@ protocol_packet_ids!(
clientbound Clientbound {
0x00 => KeepAliveClientbound_VarInt
0x01 => JoinGame_i8
0x02 => ServerMessage
0x02 => ServerMessage_Position
0x03 => TimeUpdate
0x04 => EntityEquipment_u16
0x05 => SpawnPosition

View File

@ -55,7 +55,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose

View File

@ -55,7 +55,7 @@ protocol_packet_ids!(
0x0c => BossBar
0x0d => ServerDifficulty
0x0e => TabCompleteReply
0x0f => ServerMessage
0x0f => ServerMessage_Position
0x10 => MultiBlockChange_VarInt
0x11 => ConfirmTransaction
0x12 => WindowClose