Pumpkin/pumpkin-protocol/src/client/play/actionbar.rs
Alexander Medvedev 466d4380cf Some Refactors
2025-02-01 17:53:41 +01:00

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 }
}
}