Add a config to lock the rolling machine recipe + some optimisations #1412

This commit is contained in:
modmuss50 2018-01-31 13:47:48 +00:00
parent a3d2aa9907
commit 0b8f139e6d
2 changed files with 43 additions and 17 deletions

View file

@ -145,6 +145,16 @@ public class RollingMachineRecipe {
return ItemStack.EMPTY;
}
public IRecipe findMatchingRecipeObj(InventoryCrafting inv, World world) {
for (IRecipe irecipe : recipes.values()) {
if (irecipe.matches(inv, world)) {
return irecipe;
}
}
return null;
}
public HashMap<ResourceLocation, IRecipe> getRecipeList() {
return recipes;
}