2015-11-28 23:52:06 -08:00
|
|
|
package WayofTime.bloodmagic.compat.jei.altar;
|
|
|
|
|
2015-12-02 00:55:52 -08:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2015-11-28 23:52:06 -08:00
|
|
|
import mezz.jei.api.recipe.IRecipeHandler;
|
|
|
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
|
|
|
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public class AltarRecipeHandler implements IRecipeHandler<AltarRecipeJEI>
|
|
|
|
{
|
2015-11-28 23:52:06 -08:00
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 15:34:40 -05:00
|
|
|
public Class<AltarRecipeJEI> getRecipeClass()
|
|
|
|
{
|
2015-11-28 23:52:06 -08:00
|
|
|
return AltarRecipeJEI.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 15:34:40 -05:00
|
|
|
public String getRecipeCategoryUid()
|
|
|
|
{
|
2015-12-02 00:55:52 -08:00
|
|
|
return Constants.Compat.JEI_CATEGORY_ALTAR;
|
2015-11-28 23:52:06 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 15:34:40 -05:00
|
|
|
public IRecipeWrapper getRecipeWrapper(@Nonnull AltarRecipeJEI recipe)
|
|
|
|
{
|
2015-11-28 23:52:06 -08:00
|
|
|
return recipe;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 15:34:40 -05:00
|
|
|
public boolean isRecipeValid(@Nonnull AltarRecipeJEI recipe)
|
|
|
|
{
|
2015-11-28 23:52:06 -08:00
|
|
|
return recipe.getInputs().size() > 0 && recipe.getOutputs().size() > 0;
|
|
|
|
}
|
|
|
|
}
|