From d6a0457368410c95d3bb8aacbb6fea3cefc03762 Mon Sep 17 00:00:00 2001 From: Octav Sandulescu Date: Wed, 19 Dec 2012 15:02:00 +0200 Subject: [PATCH] Add way to query for refinery recipes --- common/buildcraft/api/recipes/RefineryRecipe.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/buildcraft/api/recipes/RefineryRecipe.java b/common/buildcraft/api/recipes/RefineryRecipe.java index fd2cb035..d4039dde 100644 --- a/common/buildcraft/api/recipes/RefineryRecipe.java +++ b/common/buildcraft/api/recipes/RefineryRecipe.java @@ -9,6 +9,7 @@ package buildcraft.api.recipes; +import java.util.Collections; import java.util.SortedSet; import java.util.TreeSet; @@ -24,6 +25,10 @@ public class RefineryRecipe implements Comparable { } } + public static SortedSet getRecipes() { + return Collections.unmodifiableSortedSet(recipes); + } + public static RefineryRecipe findRefineryRecipe(LiquidStack liquid1, LiquidStack liquid2) { for (RefineryRecipe recipe : recipes) if (recipe.matches(liquid1, liquid2))