mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Work on Formulaic Assemblicator, got a lot more of the core logic done than I was expecting to
This commit is contained in:
1 parent
2db6fde118
commit
a247a80d53
13 files changed
+619
-7
No files matched your search
@@ -23,6 +23,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
public class RecipeUtils
|
||||
@@ -263,4 +264,17 @@ public class RecipeUtils
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static IRecipe getRecipeFromGrid(InventoryCrafting inv, World world)
|
||||
{
|
||||
for(IRecipe recipe : (List<IRecipe>)CraftingManager.getInstance().getRecipeList())
|
||||
{
|
||||
if(recipe.matches(inv, world))
|
||||
{
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user