diff options
| author | mat <git@matdoes.dev> | 2025-05-07 15:08:31 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-07 15:08:31 -0545 |
| commit | ad4eaa174c924c23dc06a0aea06537a078ce4c45 (patch) | |
| tree | 3a0a34252804c6601c2734241c106699bf4fc00d /azalea-client/src | |
| parent | e0d3352a90ddbdeb06314e6f38d2afe6fa4ddd78 (diff) | |
| download | azalea-drasl-ad4eaa174c924c23dc06a0aea06537a078ce4c45.tar.xz | |
doc warnings
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/plugins/attack.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/plugins/events.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/plugins/tick_broadcast.rs | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/attack.rs b/azalea-client/src/plugins/attack.rs index 137e3375..cac2a021 100644 --- a/azalea-client/src/plugins/attack.rs +++ b/azalea-client/src/plugins/attack.rs @@ -68,10 +68,10 @@ impl Client { /// A component that indicates that this client will be attacking the given /// entity next tick. #[derive(Component, Clone, Debug)] -struct AttackQueued { +pub struct AttackQueued { pub target: MinecraftEntityId, } -fn handle_attack_queued( +pub fn handle_attack_queued( mut commands: Commands, mut query: Query<( Entity, diff --git a/azalea-client/src/plugins/events.rs b/azalea-client/src/plugins/events.rs index 97094db5..090b9d0d 100644 --- a/azalea-client/src/plugins/events.rs +++ b/azalea-client/src/plugins/events.rs @@ -1,5 +1,5 @@ -//! Defines the [`Event`] enum and makes those events trigger when they're sent -//! in the ECS. +//! Defines the [`enum@Event`] enum and makes those events trigger when they're +//! sent in the ECS. use std::sync::Arc; diff --git a/azalea-client/src/plugins/tick_broadcast.rs b/azalea-client/src/plugins/tick_broadcast.rs index 424e1bf3..b55b9921 100644 --- a/azalea-client/src/plugins/tick_broadcast.rs +++ b/azalea-client/src/plugins/tick_broadcast.rs @@ -37,7 +37,8 @@ pub fn send_tick_broadcast(tick_broadcast: ResMut<TickBroadcast>) { pub fn send_update_broadcast(update_broadcast: ResMut<UpdateBroadcast>) { let _ = update_broadcast.0.send(()); } -/// A plugin that makes the [`RanScheduleBroadcast`] resource available. +/// A plugin that makes the [`UpdateBroadcast`] and [`TickBroadcast`] resources +/// available. pub struct TickBroadcastPlugin; impl Plugin for TickBroadcastPlugin { fn build(&self, app: &mut App) { |
