mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix broken doc links
This commit is contained in:
parent
5f5616145b
commit
a95408cbcc
3 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue