pub trait ChatContext {
// Required methods
fn send(&self, text: &str);
fn send_component(&self, component: &TextComponent);
fn action_bar(&self, text: &str);
fn broadcast(&self, text: &str);
fn broadcast_component(&self, component: &TextComponent);
}Expand description
Chat and messaging.
Required Methods§
Sourcefn send_component(&self, component: &TextComponent)
fn send_component(&self, component: &TextComponent)
Sends a styled message to the current player.
Sourcefn action_bar(&self, text: &str)
fn action_bar(&self, text: &str)
Sends an action bar message to the current player.
Sourcefn broadcast_component(&self, component: &TextComponent)
fn broadcast_component(&self, component: &TextComponent)
Broadcasts a styled message to ALL connected players.