Skip to content

Commit

Permalink
feat(neoforge): Expose RecipeManager#recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 committed Oct 23, 2024
1 parent dd989e5 commit 8d1bc8c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,13 @@
--- a/net/minecraft/world/item/crafting/RecipeManager.java
+++ b/net/minecraft/world/item/crafting/RecipeManager.java
@@ -260,6 +_,10 @@
: Optional.empty();
}

+ 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 8d1bc8c

Please sign in to comment.