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, }