Add a config to lock the rolling machine recipe + some optimisations #1412
This commit is contained in:
parent
a3d2aa9907
commit
0b8f139e6d
2 changed files with 43 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue