aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_set_test_block.rs
blob: 579b689e17af7314fe8a233bdd32f4d8321068a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use azalea_buf::AzBuf;
use azalea_core::position::BlockPos;
use azalea_protocol_macros::ServerboundGamePacket;

#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
pub struct ServerboundSetTestBlock {
    pub position: BlockPos,
    pub mode: TestBlockMode,
    pub message: String,
}

#[derive(Clone, Copy, Debug, AzBuf, Default)]
pub enum TestBlockMode {
    #[default]
    Start,
    Log,
    Fail,
    Accept,
}