diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-03-25 11:17:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 11:17:39 -0500 |
| commit | ef357fdf3667f3ded03203fc0f7cdec48a01ad8f (patch) | |
| tree | 6e7429c62a22fec1988278f63554c93bdd905a5d /azalea-protocol/src/packets/game/s_set_test_block.rs | |
| parent | 8af265e48bf9f3d5263c074d034770e4216bb3f3 (diff) | |
| download | azalea-drasl-ef357fdf3667f3ded03203fc0f7cdec48a01ad8f.tar.xz | |
1.21.5 (#198)
* 25w02a
* move item_components codegen to a different module
* remove outdated test
* 25w03a
* start updating to 24w09b
* 1.21.5-pre2
* fix broken packets
* 1.21.5-rc2
* merge main
* delete unused acket_handling
* 1.21.5
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_test_block.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/s_set_test_block.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/s_set_test_block.rs b/azalea-protocol/src/packets/game/s_set_test_block.rs new file mode 100644 index 00000000..579b689e --- /dev/null +++ b/azalea-protocol/src/packets/game/s_set_test_block.rs @@ -0,0 +1,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, +} |
