chunkedge_protocol/packets/play/disguised_chat_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode, TextComponent};
4
5use super::player_chat_s2c::ChatType;
6use crate::Packet;
7
8#[derive(Clone, Debug, Encode, Decode, Packet)]
9pub struct DisguisedChatS2c<'a> {
10 pub message: Cow<'a, TextComponent>,
11 pub chat_type: ChatType<'a>,
12 pub sender_name: Cow<'a, TextComponent>,
13 pub target_name: Option<Cow<'a, TextComponent>>,
14}