Add fluidstack info to jei recipe for IndustrialGrinder

This commit is contained in:
Ourten 2016-12-14 02:08:22 +01:00
parent 601194685b
commit abcef5aace

View file

@ -4,6 +4,7 @@ import mezz.jei.api.IGuiHelper;
import mezz.jei.api.IJeiHelpers;
import mezz.jei.api.gui.IDrawableAnimated;
import mezz.jei.api.gui.IDrawableStatic;
import mezz.jei.api.ingredients.IIngredients;
import net.minecraft.client.Minecraft;
import net.minecraftforge.fluids.FluidStack;
import techreborn.api.recipe.machines.IndustrialGrinderRecipe;
@ -30,6 +31,12 @@ public class IndustrialGrinderRecipeWrapper extends BaseRecipeWrapper<Industrial
this.progress = guiHelper.createAnimatedDrawable(progressStatic, ticksPerCycle,
IDrawableAnimated.StartDirection.LEFT, false);
}
@Override
public void getIngredients(@Nonnull final IIngredients ingredients) {
ingredients.setInput(FluidStack.class, this.baseRecipe.fluidStack);
super.getIngredients(ingredients);
}
@Override
@Nonnull