From eeaf1435e81d9cbd8daa0efa22029c1f259a64b5 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 24 Mar 2026 11:15:56 -0500 Subject: 26.1 (#316) * start updating to 26.1 * start updating to 26.1-snapshot-6 * 26.1-snapshot-6 * 26.1-snapshot-10 * 26.1-rc-1 * fix tests * 26.1-rc-2 and sort default components * 26.1 * update changelog --- azalea-protocol/src/common/recipe.rs | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src/common') diff --git a/azalea-protocol/src/common/recipe.rs b/azalea-protocol/src/common/recipe.rs index e0e10ecc..5e1f93c9 100644 --- a/azalea-protocol/src/common/recipe.rs +++ b/azalea-protocol/src/common/recipe.rs @@ -1,6 +1,11 @@ use azalea_buf::AzBuf; use azalea_inventory::ItemStack; -use azalea_registry::{HolderSet, builtin::ItemKind, data::TrimPattern, identifier::Identifier}; +use azalea_registry::{ + HolderSet, + builtin::{DataComponentKind, ItemKind}, + data::TrimPattern, + identifier::Identifier, +}; /// [`azalea_registry::builtin::RecipeDisplay`] #[derive(AzBuf, Clone, Debug, PartialEq)] @@ -63,14 +68,27 @@ pub struct Ingredient { pub enum SlotDisplayData { Empty, AnyFuel, + WithAnyPotion(Box), + OnlyWithComponent(Box), Item(ItemSlotDisplay), ItemStack(ItemStackSlotDisplay), Tag(TagSlotDisplay), + Dyed(Box), SmithingTrim(Box), WithRemainder(Box), Composite(CompositeSlotDisplay), } +#[derive(AzBuf, Clone, Debug, PartialEq)] +pub struct WithAnyPotionSlotDisplay { + pub contents: SlotDisplayData, +} +#[derive(AzBuf, Clone, Debug, PartialEq)] +pub struct OnlyWithComponentSlotDisplay { + pub contents: SlotDisplayData, + pub component: DataComponentKind, +} + #[derive(AzBuf, Clone, Debug, PartialEq)] pub struct ItemSlotDisplay { pub item: ItemKind, @@ -80,6 +98,11 @@ pub struct ItemStackSlotDisplay { pub stack: ItemStack, } #[derive(AzBuf, Clone, Debug, PartialEq)] +pub struct DyedSlotDemo { + pub dye: SlotDisplayData, + pub target: SlotDisplayData, +} +#[derive(AzBuf, Clone, Debug, PartialEq)] pub struct TagSlotDisplay { pub tag: Identifier, } -- cgit v1.2.3