diff options
| author | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
| commit | ee2575794e91b9457a74a95daf1dcc707058cd58 (patch) | |
| tree | df725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-client/src/plugins/packet | |
| parent | 1a1402954b07cd77615d0afc026c73b008787f51 (diff) | |
| download | azalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz | |
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-client/src/plugins/packet')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/events.rs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/azalea-client/src/plugins/packet/game/events.rs b/azalea-client/src/plugins/packet/game/events.rs index cb9a5e07..7c773b44 100644 --- a/azalea-client/src/plugins/packet/game/events.rs +++ b/azalea-client/src/plugins/packet/game/events.rs @@ -102,9 +102,10 @@ pub struct UpdatePlayerEvent { pub info: PlayerInfo, } -/// Event for when an entity dies. dies. If it's a local player and there's a -/// reason in the death screen, the [`ClientboundPlayerCombatKill`] will -/// be included. +/// Event for when an entity dies. +/// +/// If it's a local player and there's a reason in the death screen, the +/// [`ClientboundPlayerCombatKill`] will be included. #[derive(Message, Debug, Clone)] pub struct DeathEvent { pub entity: Entity, @@ -116,16 +117,20 @@ pub struct DeathEvent { #[derive(Message, Debug, Clone)] pub struct KeepAliveEvent { pub entity: Entity, - /// The ID of the keepalive. This is an arbitrary number, but vanilla - /// servers use the time to generate this. + /// The ID of the keepalive. + /// + /// This is an arbitrary number, but vanilla servers use the current time to + /// generate this. pub id: u64, } #[derive(Message, Debug, Clone)] pub struct ResourcePackEvent { pub entity: Entity, - /// The random ID for this request to download the resource pack. The packet - /// for replying to a resource pack push must contain the same ID. + /// The random ID for this request to download the resource pack. + /// + /// The packet for replying to a resource pack push must contain the same + /// ID. pub id: Uuid, pub url: String, pub hash: String, |
