aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_recipe_book_settings.rs
blob: e2fa217fc49825e965fe9e4873a41e69b52ea5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundRecipeBookSettings {
    pub book_settings: RecipeBookSettings,
}

#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct RecipeBookSettings {
    pub gui_open: bool,
    pub filtering_craftable: bool,

    pub furnace_gui_open: bool,
    pub furnace_filtering_craftable: bool,

    pub blast_furnace_gui_open: bool,
    pub blast_furnace_filtering_craftable: bool,

    pub smoker_gui_open: bool,
    pub smoker_filtering_craftable: bool,
}