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.IJeiHelpers;
import mezz.jei.api.gui.IDrawableAnimated; import mezz.jei.api.gui.IDrawableAnimated;
import mezz.jei.api.gui.IDrawableStatic; import mezz.jei.api.gui.IDrawableStatic;
import mezz.jei.api.ingredients.IIngredients;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.FluidStack;
import techreborn.api.recipe.machines.IndustrialGrinderRecipe; import techreborn.api.recipe.machines.IndustrialGrinderRecipe;
@ -31,6 +32,12 @@ public class IndustrialGrinderRecipeWrapper extends BaseRecipeWrapper<Industrial
IDrawableAnimated.StartDirection.LEFT, false); IDrawableAnimated.StartDirection.LEFT, false);
} }
@Override
public void getIngredients(@Nonnull final IIngredients ingredients) {
ingredients.setInput(FluidStack.class, this.baseRecipe.fluidStack);
super.getIngredients(ingredients);
}
@Override @Override
@Nonnull @Nonnull
public List<FluidStack> getFluidInputs() { public List<FluidStack> getFluidInputs() {