azalea_protocol/packets/game/
c_change_difficulty.rs

1use azalea_buf::AzBuf;
2use azalea_core::difficulty::Difficulty;
3use azalea_protocol_macros::ClientboundGamePacket;
4
5#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
6pub struct ClientboundChangeDifficulty {
7    pub difficulty: Difficulty,
8    pub locked: bool,
9}