aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-07 06:01:19 +0400
committermat <git@matdoes.dev>2025-10-07 06:01:19 +0400
commit1cf6d92f1a8be954f6885704c31f317b99b05972 (patch)
treeab241a7b6fda815e777b914a8a9a153d23e81f06 /azalea-client/src
parent06807ec3ea7df6e83eed51b38f9d5e3bea9e7045 (diff)
downloadazalea-drasl-1cf6d92f1a8be954f6885704c31f317b99b05972.tar.xz
update ResolvableProfile data component to 1.21.9
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/client.rs16
-rw-r--r--azalea-client/src/plugins/packet/config/events.rs4
2 files changed, 11 insertions, 9 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index bb827838..cf07f8b2 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -261,12 +261,13 @@ impl Client {
/// return it.
///
///
- /// If the component can't be cloned, try [`Self::map_component`] instead.
- /// If it isn't guaranteed to be present, use [`Self::get_component`] or
- /// [`Self::map_get_component`].
+ /// If the component can't be cloned, try [`Self::query_self`] instead.
+ /// If it isn't guaranteed to be present, you can use
+ /// [`Self::get_component`] or [`Self::query_self`].
///
- /// You may also use [`Self::ecs`] and [`Self::query`] directly if you need
- /// more control over when the ECS is locked.
+ ///
+ /// You may also use [`Self::ecs`] directly if you need more control over
+ /// when the ECS is locked.
///
/// # Panics
///
@@ -285,9 +286,10 @@ impl Client {
/// Get a component from this client, or `None` if it doesn't exist.
///
- /// If the component can't be cloned, try [`Self::map_component`] instead.
+ /// If the component can't be cloned, consider using [`Self::query_self`]
+ /// with `Option<&T>` instead.
///
- /// You may also have to use [`Self::with_query`] directly.
+ /// You may also have to use [`Self::query_self`] directly.
pub fn get_component<T: Component + Clone>(&self) -> Option<T> {
self.query_self::<Option<&T>, _>(|t| t.cloned())
}
diff --git a/azalea-client/src/plugins/packet/config/events.rs b/azalea-client/src/plugins/packet/config/events.rs
index be5cfdb1..92df8d74 100644
--- a/azalea-client/src/plugins/packet/config/events.rs
+++ b/azalea-client/src/plugins/packet/config/events.rs
@@ -54,10 +54,10 @@ pub fn handle_outgoing_packets_observer(
/// A Bevy trigger that's sent when our client receives a [`ClientboundPing`]
/// packet in the config state.
///
-/// Also see [`PingEvent`].
+/// Also see [`GamePingEvent`].
///
/// [`ClientboundPing`]: azalea_protocol::packets::config::ClientboundPing
-/// [`PingEvent`]: crate::packet::game::PingEvent
+/// [`GamePingEvent`]: crate::packet::game::GamePingEvent
#[derive(Event, Debug, Clone)]
pub struct ConfigPingEvent {
pub entity: Entity,