From bd1804b00c7722db5dc5b2fc7e7f797478720287 Mon Sep 17 00:00:00 2001 From: ChampionAsh5357 Date: Fri, 25 Oct 2024 13:46:52 -0400 Subject: [PATCH] [1.21.3] Expose RecipeManager#recipes via new getter function (#1620) --- .../world/item/crafting/RecipeManager.java.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/net/minecraft/world/item/crafting/RecipeManager.java.patch diff --git a/patches/net/minecraft/world/item/crafting/RecipeManager.java.patch b/patches/net/minecraft/world/item/crafting/RecipeManager.java.patch new file mode 100644 index 0000000000..e1cbdae41d --- /dev/null +++ b/patches/net/minecraft/world/item/crafting/RecipeManager.java.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/world/item/crafting/RecipeManager.java ++++ b/net/minecraft/world/item/crafting/RecipeManager.java +@@ -260,6 +_,11 @@ + : Optional.empty(); + } + ++ // Neo: expose recipe map ++ public RecipeMap recipeMap() { ++ return this.recipes; ++ } ++ + public interface CachedCheck> { + Optional> getRecipeFor(I p_344938_, ServerLevel p_379487_); + }