From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Thu, 27 Mar 2025 13:04:35 +0800 Subject: [PATCH] Leaves: Support REI protocol Co-authored by: violetc <58360096+s-yh-china@users.noreply.github.com> As a part of : Leaves (https://github.com/LeavesMC/Leaves) Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) diff --git a/net/minecraft/world/item/crafting/SmithingTransformRecipe.java b/net/minecraft/world/item/crafting/SmithingTransformRecipe.java index 33f9870a4f966a887023b1debd4ab9ef9d24378f..89983e7da244434a5346b23b49c748349cd79e34 100644 --- a/net/minecraft/world/item/crafting/SmithingTransformRecipe.java +++ b/net/minecraft/world/item/crafting/SmithingTransformRecipe.java @@ -115,6 +115,12 @@ public class SmithingTransformRecipe extends SimpleSmithingRecipe { ); } + // Leaves start - REI + public SlotDisplay getResult() { + return new SlotDisplay.ItemStackSlotDisplay(this.result); + } + // Leaves end - REI + // CraftBukkit start @Override public org.bukkit.inventory.Recipe toBukkitRecipe(org.bukkit.NamespacedKey id) { diff --git a/net/minecraft/world/item/crafting/SmithingTrimRecipe.java b/net/minecraft/world/item/crafting/SmithingTrimRecipe.java index 93347bd9fbab41888c5d63eb40e7928e74a1f9af..4f9e700ed621cdb556162174bbb9b219403fc05a 100644 --- a/net/minecraft/world/item/crafting/SmithingTrimRecipe.java +++ b/net/minecraft/world/item/crafting/SmithingTrimRecipe.java @@ -109,6 +109,12 @@ public class SmithingTrimRecipe extends SimpleSmithingRecipe { return Optional.of(this.addition); } + // Leaves start + public Holder pattern() { + return pattern; + } + // Leaves end + @Override public RecipeSerializer getSerializer() { return SERIALIZER;