Trait SendMessage

Source
pub trait SendMessage {
    // Required methods
    fn send_chat_message<'a>(&mut self, msg: impl IntoText<'a>);
    fn send_action_bar_message<'a>(&mut self, msg: impl IntoText<'a>);
}

Required Methods§

Source

fn send_chat_message<'a>(&mut self, msg: impl IntoText<'a>)

Sends a system message visible in the chat.

Source

fn send_action_bar_message<'a>(&mut self, msg: impl IntoText<'a>)

Displays a message in the player’s action bar (text above the hotbar).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> SendMessage for T
where T: WritePacket,