18 lines
411 B
Rust
18 lines
411 B
Rust
use pumpkin_data::packet::clientbound::PLAY_SET_ACTION_BAR_TEXT;
|
|
use pumpkin_util::text::TextComponent;
|
|
|
|
use pumpkin_macros::client_packet;
|
|
use serde::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
#[client_packet(PLAY_SET_ACTION_BAR_TEXT)]
|
|
pub struct CActionBar<'a> {
|
|
action_bar: &'a TextComponent,
|
|
}
|
|
|
|
impl<'a> CActionBar<'a> {
|
|
pub fn new(action_bar: &'a TextComponent) -> Self {
|
|
Self { action_bar }
|
|
}
|
|
}
|