2015-12-03 03:27:28 +00:00
|
|
|
package WayofTime.bloodmagic.compat.jei.binding;
|
|
|
|
|
2016-02-25 13:54:18 +00:00
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
2015-12-03 03:27:28 +00:00
|
|
|
import mezz.jei.api.recipe.IRecipeHandler;
|
|
|
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
2016-02-25 13:54:18 +00:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2015-12-03 03:27:28 +00:00
|
|
|
|
2015-12-30 20:34:40 +00:00
|
|
|
public class BindingRecipeHandler implements IRecipeHandler<BindingRecipeJEI>
|
|
|
|
{
|
2015-12-03 03:27:28 +00:00
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public Class<BindingRecipeJEI> getRecipeClass()
|
|
|
|
{
|
2015-12-03 03:27:28 +00:00
|
|
|
return BindingRecipeJEI.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public String getRecipeCategoryUid()
|
|
|
|
{
|
2015-12-03 03:27:28 +00:00
|
|
|
return Constants.Compat.JEI_CATEGORY_BINDING;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public IRecipeWrapper getRecipeWrapper(@Nonnull BindingRecipeJEI recipe)
|
|
|
|
{
|
2015-12-03 03:27:28 +00:00
|
|
|
return recipe;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public boolean isRecipeValid(@Nonnull BindingRecipeJEI recipe)
|
|
|
|
{
|
2015-12-03 03:27:28 +00:00
|
|
|
return recipe.getInputs().size() > 0 && recipe.getOutputs().size() > 0;
|
|
|
|
}
|
|
|
|
}
|