Merge pull request #834 from Ourten/feature/jei-grinder-fluid

Add fluidstack info to jei recipe for IndustrialGrinder
This commit is contained in:
Modmuss50 2016-12-14 08:00:42 +00:00 committed by GitHub
commit 5eac54b523

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