diff --git a/src/main/java/slimeknights/mantle/util/RecipeMatch.java b/src/main/java/slimeknights/mantle/util/RecipeMatch.java index cd981a6..f6651ba 100644 --- a/src/main/java/slimeknights/mantle/util/RecipeMatch.java +++ b/src/main/java/slimeknights/mantle/util/RecipeMatch.java @@ -54,6 +54,18 @@ public abstract class RecipeMatch { return new RecipeMatch.Oredict(oredict, amount, matched); } + public static RecipeMatch of(List oredict) { + return of(oredict, 1); + } + + public static RecipeMatch of(List oredict, int matched) { + return of(oredict, 1, matched); + } + + public static RecipeMatch of(List oredict, int amount, int matched) { + return new RecipeMatch.Oredict(oredict, amount, matched); + } + public static RecipeMatch of(net.minecraft.item.Item item) { return of(item, 1); } @@ -216,6 +228,15 @@ public abstract class RecipeMatch { private final List oredictEntry; // todo: change this to the actual list in the oredict + public Oredict(List oredictEntry, int amountNeeded) { + this(oredictEntry, amountNeeded, 1); + } + + public Oredict(List oredictEntry, int amountNeeded, int amountMatched) { + super(amountMatched, amountNeeded); + this.oredictEntry = oredictEntry; + } + public Oredict(String oredictEntry, int amountNeeded) { this(oredictEntry, amountNeeded, 1); }