Split ServerMessage_Position packet
This commit is contained in:
parent
81300cdf43
commit
b1fef97291
|
@ -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 =,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue