/*------------------------------------------------------------------------------
 Copyright (c) CovertJaguar, 2011-2016

 This work (the API) is licensed under the "MIT" License,
 see LICENSE.md for details.
 -----------------------------------------------------------------------------*/

package mods.railcraft.api.core;

import net.minecraft.item.crafting.Ingredient;
import net.minecraftforge.common.crafting.CraftingHelper;

import org.jetbrains.annotations.Nullable;

/**
 * Created by CovertJaguar on 9/2/2016 for Railcraft.
 *
 * @author CovertJaguar <http://www.railcraft.info>
 * @deprecated Use {@link IIngredientSource} instead
 */
public interface IRailcraftRecipeIngredient extends IIngredientSource {
    @Nullable
    @Deprecated // getIngredient instead
    Object getRecipeObject();

    @Nullable
    @Deprecated // getIngredient instead
    default Object getRecipeObject(@Nullable IVariantEnum variant) {
        return getRecipeObject();
    }

    @Override
    @SuppressWarnings("deprecation")
    default Ingredient getIngredient() {
        Ingredient ret = CraftingHelper.getIngredient(getRecipeObject());
        return ret == null ? Ingredient.EMPTY : ret;
    }

    @Override
    @SuppressWarnings("deprecation")
    default Ingredient getIngredient(@Nullable IVariantEnum variant) {
        Ingredient ret = CraftingHelper.getIngredient(getRecipeObject(variant));
        return ret == null ? Ingredient.EMPTY : ret;
    }
}

@@ -584,61 +584,8 @@
 fo%3E%0A
- * @deprecated Use %7B@link IIngredientSource%7D instead%0A
  */%0A

Fix an incorrect deprecation