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