Updated JEI plugin to newer API methods.

This commit is contained in:
Gunther De Wachter
2017-08-16 17:51:43 +02:00
parent 7cb641cdc8
commit 8a7450168b
16 changed files with 68 additions and 155 deletions
@@ -19,36 +19,16 @@
package appeng.integration.modules.jei;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import appeng.api.features.IGrinderRecipe;
import mezz.jei.api.recipe.IRecipeWrapperFactory;
class GrinderRecipeHandler implements IRecipeHandler<IGrinderRecipe>
class GrinderRecipeHandler implements IRecipeWrapperFactory<IGrinderRecipe>
{
@Override
public Class<IGrinderRecipe> getRecipeClass()
{
return IGrinderRecipe.class;
}
@Override
public String getRecipeCategoryUid( IGrinderRecipe recipe )
{
return GrinderRecipeCategory.UID;
}
@Override
public IRecipeWrapper getRecipeWrapper( IGrinderRecipe recipe )
{
return new GrinderRecipeWrapper( recipe );
}
@Override
public boolean isRecipeValid( IGrinderRecipe recipe )
{
return true;
}
}