From a06d9c58c6946da863dffd12aa4a2ce8f361318b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 12 Jul 2023 06:51:48 +1000 Subject: [PATCH] #886: Deprecate the SmithingRecipe constructor as it now does nothing By: Parker Hawke --- .../src/main/java/org/bukkit/inventory/SmithingRecipe.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/inventory/SmithingRecipe.java b/paper-api/src/main/java/org/bukkit/inventory/SmithingRecipe.java index af04071d37..0235f4aa50 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/SmithingRecipe.java +++ b/paper-api/src/main/java/org/bukkit/inventory/SmithingRecipe.java @@ -21,7 +21,12 @@ public class SmithingRecipe implements Recipe, Keyed { * @param result The item you want the recipe to create. * @param base The base ingredient * @param addition The addition ingredient + * @deprecated as of Minecraft 1.20, smithing recipes are now separated into two + * distinct recipe types, {@link SmithingTransformRecipe} and {@link SmithingTrimRecipe}. + * This class now acts as a base class to these two classes and will do nothing when + * added to the server. */ + @Deprecated public SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) { this.key = key; this.result = result;