chunkedge_protocol/packets/play/
set_test_block_c2s.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode};
4
5use crate::{BlockPos, Packet};
6
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8pub struct SetTestBlockC2s<'a> {
9    pub position: BlockPos,
10    pub mode: SetTestBlockMode,
11    pub message: Cow<'a, str>,
12}
13
14#[derive(Copy, Clone, Debug, Encode, Decode)]
15pub enum SetTestBlockMode {
16    Start,
17    Log,
18    Fail,
19    Accept,
20}