Trait valence::message::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).

Object Safety§

This trait is not object safe.

Implementors§

source§

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