Fix depreated method usage for JEI

This commit is contained in:
pupnewfster authored and Dave Smith committed 2019-03-17 21:30:36 -06:00
1 parent b8787f8230
commit 10e741ade5
31 files changed
+106 -141

No files matched your search

@@ -6,10 +6,10 @@ import mekanism.common.recipe.inputs.ItemStackInput;
import mekanism.common.recipe.machines.ChanceMachineRecipe;
import mekanism.common.recipe.outputs.ChanceOutput;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.ingredients.VanillaTypes;
import mezz.jei.api.recipe.IRecipeWrapper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.item.ItemStack;
public class ChanceMachineRecipeWrapper implements IRecipeWrapper {
@@ -22,8 +22,8 @@ public class ChanceMachineRecipeWrapper implements IRecipeWrapper {
@Override
public void getIngredients(IIngredients ingredients) {
ChanceOutput output = (ChanceOutput) recipe.getOutput();
ingredients.setInput(ItemStack.class, ((ItemStackInput) recipe.getInput()).ingredient);
ingredients.setOutputs(ItemStack.class, Arrays.asList(output.primaryOutput, output.secondaryOutput));
ingredients.setInput(VanillaTypes.ITEM, ((ItemStackInput) recipe.getInput()).ingredient);
ingredients.setOutputs(VanillaTypes.ITEM, Arrays.asList(output.primaryOutput, output.secondaryOutput));
}
@Override