use of techreborn.api.recipe.machines.GrinderRecipe in project TechReborn by TechReborn.
the class CTGrinder method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
addRecipe(r);
}
use of techreborn.api.recipe.machines.GrinderRecipe in project TechReborn by TechReborn.
the class ModRecipes method postInit.
public static void postInit() {
if (ConfigTechReborn.disableRailcraftSteelNuggetRecipe) {
Iterator<Entry<ItemStack, ItemStack>> iterator = FurnaceRecipes.instance().getSmeltingList().entrySet().iterator();
Map.Entry<ItemStack, ItemStack> entry;
while (iterator.hasNext()) {
entry = iterator.next();
if (entry.getValue() instanceof ItemStack && entry.getKey() instanceof ItemStack) {
ItemStack input = (ItemStack) entry.getKey();
ItemStack output = (ItemStack) entry.getValue();
if (ItemUtils.isInputEqual("nuggetSteel", output, true, true, false) && ItemUtils.isInputEqual("nuggetIron", input, true, true, false)) {
Core.logHelper.info("Removing a steelnugget smelting recipe");
iterator.remove();
}
}
}
}
IndustrialSawmillRecipes.init();
// Let it be in postInit to be sure that oredict already there
if (OreUtil.doesOreExistAndValid("stoneMarble")) {
ItemStack marbleStack = getOre("stoneMarble");
marbleStack.setCount(1);
RecipeHandler.addRecipe(new GrinderRecipe(marbleStack, ItemDusts.getDustByName("marble"), 120, 10));
}
if (OreUtil.doesOreExistAndValid("stoneBasalt")) {
ItemStack marbleStack = getOre("stoneBasalt");
marbleStack.setCount(1);
RecipeHandler.addRecipe(new GrinderRecipe(marbleStack, ItemDusts.getDustByName("basalt"), 120, 10));
}
}
Aggregations