Update client abilities, server message, respawn, login success
This commit is contained in:
parent
d2247e7332
commit
ba1cb6606e
|
@ -285,6 +285,9 @@ state_packets!(
|
||||||
field flying_speed: f32 =,
|
field flying_speed: f32 =,
|
||||||
field walking_speed: f32 =,
|
field walking_speed: f32 =,
|
||||||
}
|
}
|
||||||
|
packet ClientAbilities_u8 {
|
||||||
|
field flags: u8 =,
|
||||||
|
}
|
||||||
/// PlayerDigging is sent when the client starts/stops digging a block.
|
/// PlayerDigging is sent when the client starts/stops digging a block.
|
||||||
/// It also can be sent for droppping items and eating/shooting.
|
/// It also can be sent for droppping items and eating/shooting.
|
||||||
packet PlayerDigging {
|
packet PlayerDigging {
|
||||||
|
@ -840,6 +843,12 @@ state_packets!(
|
||||||
/// ServerMessage is a message sent by the server. It could be from a player
|
/// 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
|
/// or just a system message. The Type field controls the location the
|
||||||
/// message is displayed at and when the message is displayed.
|
/// message is displayed at and when the message is displayed.
|
||||||
|
packet ServerMessage_UUID {
|
||||||
|
field message: format::Component =,
|
||||||
|
/// 0 - Chat message, 1 - System message, 2 - Action bar message
|
||||||
|
field position: u8 =,
|
||||||
|
field sender: UUID =,
|
||||||
|
}
|
||||||
packet ServerMessage {
|
packet ServerMessage {
|
||||||
field message: format::Component =,
|
field message: format::Component =,
|
||||||
/// 0 - Chat message, 1 - System message, 2 - Action bar message
|
/// 0 - Chat message, 1 - System message, 2 - Action bar message
|
||||||
|
@ -1489,6 +1498,16 @@ state_packets!(
|
||||||
field gamemode: u8 =,
|
field gamemode: u8 =,
|
||||||
field level_type: String =,
|
field level_type: String =,
|
||||||
}
|
}
|
||||||
|
packet Respawn_WorldName {
|
||||||
|
field dimension: String =,
|
||||||
|
field world_name: String =,
|
||||||
|
field hashed_seed: i64 =,
|
||||||
|
field gamemode: u8 =,
|
||||||
|
field previous_gamemode: u8 =,
|
||||||
|
field is_debug: bool =,
|
||||||
|
field is_flat: bool =,
|
||||||
|
field copy_metadata: bool =,
|
||||||
|
}
|
||||||
/// EntityHeadLook rotates an entity's head to the new angle.
|
/// EntityHeadLook rotates an entity's head to the new angle.
|
||||||
packet EntityHeadLook {
|
packet EntityHeadLook {
|
||||||
field entity_id: VarInt =,
|
field entity_id: VarInt =,
|
||||||
|
@ -1970,6 +1989,10 @@ state_packets!(
|
||||||
field uuid: String =,
|
field uuid: String =,
|
||||||
field username: String =,
|
field username: String =,
|
||||||
}
|
}
|
||||||
|
packet LoginSuccess_UUID {
|
||||||
|
field uuid: UUID =,
|
||||||
|
field username: String =,
|
||||||
|
}
|
||||||
/// SetInitialCompression sets the compression threshold during the
|
/// SetInitialCompression sets the compression threshold during the
|
||||||
/// login state.
|
/// login state.
|
||||||
packet SetInitialCompression {
|
packet SetInitialCompression {
|
||||||
|
|
|
@ -22,7 +22,7 @@ protocol_packet_ids!(
|
||||||
0x0b => PluginMessageServerbound
|
0x0b => PluginMessageServerbound
|
||||||
0x0c => EditBook
|
0x0c => EditBook
|
||||||
0x0d => QueryEntityNBT
|
0x0d => QueryEntityNBT
|
||||||
0x0e => UseEntity
|
0x0e => UseEntity // TODO
|
||||||
//0x0f => GenerateStructure // TODO
|
//0x0f => GenerateStructure // TODO
|
||||||
0x10 => KeepAliveServerbound_i64
|
0x10 => KeepAliveServerbound_i64
|
||||||
0x11 => LockDifficulty
|
0x11 => LockDifficulty
|
||||||
|
@ -34,7 +34,7 @@ protocol_packet_ids!(
|
||||||
0x17 => SteerBoat
|
0x17 => SteerBoat
|
||||||
0x18 => PickItem
|
0x18 => PickItem
|
||||||
0x19 => CraftRecipeRequest
|
0x19 => CraftRecipeRequest
|
||||||
0x1a => ClientAbilities // TODO
|
0x1a => ClientAbilities_u8
|
||||||
0x1b => PlayerDigging
|
0x1b => PlayerDigging
|
||||||
0x1c => PlayerAction
|
0x1c => PlayerAction
|
||||||
0x1d => SteerVehicle
|
0x1d => SteerVehicle
|
||||||
|
@ -48,7 +48,7 @@ protocol_packet_ids!(
|
||||||
0x25 => UpdateCommandBlock
|
0x25 => UpdateCommandBlock
|
||||||
0x26 => UpdateCommandBlockMinecart
|
0x26 => UpdateCommandBlockMinecart
|
||||||
0x27 => CreativeInventoryAction
|
0x27 => CreativeInventoryAction
|
||||||
0x28 => UpdateJigsawBlock
|
0x28 => UpdateJigsawBlock // TODO
|
||||||
0x29 => UpdateStructureBlock
|
0x29 => UpdateStructureBlock
|
||||||
0x2a => SetSign
|
0x2a => SetSign
|
||||||
0x2b => ArmSwing
|
0x2b => ArmSwing
|
||||||
|
@ -71,7 +71,7 @@ protocol_packet_ids!(
|
||||||
0x0b => BlockChange_VarInt
|
0x0b => BlockChange_VarInt
|
||||||
0x0c => BossBar
|
0x0c => BossBar
|
||||||
0x0d => ServerDifficulty_Locked
|
0x0d => ServerDifficulty_Locked
|
||||||
0x0e => ServerMessage // TODO
|
0x0e => ServerMessage_UUID
|
||||||
0x0f => MultiBlockChange_VarInt
|
0x0f => MultiBlockChange_VarInt
|
||||||
0x10 => TabCompleteReply
|
0x10 => TabCompleteReply
|
||||||
0x11 => DeclareCommands
|
0x11 => DeclareCommands
|
||||||
|
@ -93,8 +93,8 @@ protocol_packet_ids!(
|
||||||
0x21 => ChunkData_Biomes3D // TODO
|
0x21 => ChunkData_Biomes3D // TODO
|
||||||
0x22 => Effect
|
0x22 => Effect
|
||||||
0x23 => Particle_f64
|
0x23 => Particle_f64
|
||||||
0x24 => UpdateLight
|
0x24 => UpdateLight // TODO
|
||||||
0x25 => JoinGame_HashedSeed_Respawn
|
0x25 => JoinGame_HashedSeed_Respawn // TODO
|
||||||
0x26 => Maps
|
0x26 => Maps
|
||||||
0x27 => TradeList_WithRestock
|
0x27 => TradeList_WithRestock
|
||||||
0x28 => EntityMove_i16
|
0x28 => EntityMove_i16
|
||||||
|
@ -115,7 +115,7 @@ protocol_packet_ids!(
|
||||||
0x37 => EntityDestroy
|
0x37 => EntityDestroy
|
||||||
0x38 => EntityRemoveEffect
|
0x38 => EntityRemoveEffect
|
||||||
0x39 => ResourcePackSend
|
0x39 => ResourcePackSend
|
||||||
0x3a => Respawn_HashedSeed // TODO
|
0x3a => Respawn_WorldName
|
||||||
0x3b => EntityHeadLook
|
0x3b => EntityHeadLook
|
||||||
0x3c => SelectAdvancementTab
|
0x3c => SelectAdvancementTab
|
||||||
0x3d => WorldBorder
|
0x3d => WorldBorder
|
||||||
|
@ -128,7 +128,7 @@ protocol_packet_ids!(
|
||||||
0x44 => EntityMetadata
|
0x44 => EntityMetadata
|
||||||
0x45 => EntityAttach
|
0x45 => EntityAttach
|
||||||
0x46 => EntityVelocity
|
0x46 => EntityVelocity
|
||||||
0x47 => EntityEquipment
|
0x47 => EntityEquipment // TODO
|
||||||
0x48 => SetExperience
|
0x48 => SetExperience
|
||||||
0x49 => UpdateHealth
|
0x49 => UpdateHealth
|
||||||
0x4a => ScoreboardObjective
|
0x4a => ScoreboardObjective
|
||||||
|
@ -145,9 +145,9 @@ protocol_packet_ids!(
|
||||||
0x55 => CollectItem
|
0x55 => CollectItem
|
||||||
0x56 => EntityTeleport_f64
|
0x56 => EntityTeleport_f64
|
||||||
0x57 => Advancements
|
0x57 => Advancements
|
||||||
0x58 => EntityProperties
|
0x58 => EntityProperties // TODO
|
||||||
0x59 => EntityEffect
|
0x59 => EntityEffect
|
||||||
0x5a => DeclareRecipes
|
0x5a => DeclareRecipes // TODO
|
||||||
0x5b => TagsWithEntities
|
0x5b => TagsWithEntities
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ protocol_packet_ids!(
|
||||||
clientbound Clientbound {
|
clientbound Clientbound {
|
||||||
0x00 => LoginDisconnect
|
0x00 => LoginDisconnect
|
||||||
0x01 => EncryptionRequest
|
0x01 => EncryptionRequest
|
||||||
0x02 => LoginSuccess
|
0x02 => LoginSuccess_UUID
|
||||||
0x03 => SetInitialCompression
|
0x03 => SetInitialCompression
|
||||||
0x04 => LoginPluginRequest
|
0x04 => LoginPluginRequest
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue