Skip to main content

steel_protocol/packets/game/
c_open_sign_editor.rs

1use steel_macros::{ClientPacket, WriteTo};
2use steel_registry::packets::play::C_OPEN_SIGN_EDITOR;
3use steel_utils::BlockPos;
4
5/// Clientbound packet sent to open the sign editor GUI.
6#[derive(ClientPacket, WriteTo, Clone, Debug)]
7#[packet_id(Play = C_OPEN_SIGN_EDITOR)]
8pub struct COpenSignEditor {
9    /// The position of the sign block.
10    pub pos: BlockPos,
11    /// Whether to edit the front text (true) or back text (false).
12    pub is_front_text: bool,
13}