aboutsummaryrefslogtreecommitdiff
path: root/azalea-client
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-03-16 04:36:42 +0000
committermat <git@matdoes.dev>2025-03-16 04:36:42 +0000
commita95408cbcc05b5bd04a084b0a286b571069206f6 (patch)
tree1d591a2e3892039eb6fc1ebf39ff4fe86deb6947 /azalea-client
parent5f5616145b03e457d1b0dd7cc7d5ac41dd5b190c (diff)
downloadazalea-drasl-a95408cbcc05b5bd04a084b0a286b571069206f6.tar.xz
fix broken doc links
Diffstat (limited to 'azalea-client')
-rw-r--r--azalea-client/src/client.rs2
-rw-r--r--azalea-client/src/plugins/chat/handler.rs2
-rw-r--r--azalea-client/src/plugins/events.rs2
3 files changed, 6 insertions, 0 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 0a8c1eaf..840d373d 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -737,6 +737,8 @@ impl Client {
/// The player's instance (aka world) will be locked during this time, which
/// may result in a deadlock if you try to access the instance again while
/// in the function.
+ ///
+ /// [`RegistryHolder`]: azalea_core::registry_holder::RegistryHolder
pub fn with_registry_holder<R>(
&self,
f: impl FnOnce(&azalea_core::registry_holder::RegistryHolder) -> R,
diff --git a/azalea-client/src/plugins/chat/handler.rs b/azalea-client/src/plugins/chat/handler.rs
index be99b667..31fbc00e 100644
--- a/azalea-client/src/plugins/chat/handler.rs
+++ b/azalea-client/src/plugins/chat/handler.rs
@@ -18,6 +18,8 @@ use crate::packet::game::SendPacketEvent;
///
/// If you're wondering why this isn't two separate events, it's so ordering is
/// preserved if multiple chat messages and commands are sent at the same time.
+///
+/// [`SendChatEvent`]: super::SendChatEvent
#[derive(Event)]
pub struct SendChatKindEvent {
pub entity: Entity,
diff --git a/azalea-client/src/plugins/events.rs b/azalea-client/src/plugins/events.rs
index 3d34d75f..0e30118a 100644
--- a/azalea-client/src/plugins/events.rs
+++ b/azalea-client/src/plugins/events.rs
@@ -229,6 +229,8 @@ pub fn death_listener(query: Query<&LocalPlayerEvents>, mut events: EventReader<
}
/// Send the "Death" event for [`LocalEntity`]s that died with no reason.
+///
+/// [`LocalEntity`]: azalea_entity::LocalEntity
pub fn dead_component_listener(query: Query<&LocalPlayerEvents, Added<Dead>>) {
for local_player_events in &query {
local_player_events.send(Event::Death(None)).unwrap();