valence_protocol/packets/play/profileless_chat_message_s2c.rs
1use std::borrow::Cow;
2
3use valence_text::Text;
4
5use crate::{Decode, Encode, Packet, VarInt};
6
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8pub struct ProfilelessChatMessageS2c<'a> {
9 pub message: Cow<'a, Text>,
10 pub chat_type: VarInt,
11 pub chat_type_name: Cow<'a, Text>,
12 pub target_name: Option<Cow<'a, Text>>,
13}