aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_recipe_book_change_settings.rs
blob: 828631047a8bb481718fae273a1d2c634ec07719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundGamePacket;

#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundGamePacket)]
pub struct ServerboundRecipeBookChangeSettings {
    pub book_type: RecipeBookType,
    pub is_open: bool,
    pub is_filtering: bool,
}

#[derive(AzBuf, Clone, Copy, Debug, PartialEq)]
pub enum RecipeBookType {
    Crafting = 0,
    Furnace = 1,
    BlastFurnace = 2,
    Smoker = 3,
}