Skip to content

Commit

Permalink
[1.21.3] Expose RecipeManager#recipes via new getter function (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 authored Oct 25, 2024
1 parent 3f10254 commit bd1804b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/net/minecraft/world/item/crafting/RecipeManager.java.patch
Original file line number Diff line number Diff line change
@@ -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<I extends RecipeInput, T extends Recipe<I>> {
Optional<RecipeHolder<T>> getRecipeFor(I p_344938_, ServerLevel p_379487_);
}

0 comments on commit bd1804b

Please sign in to comment.