Added JEI integration (#2436).

This commit is contained in:
Sebastian Hartte
2016-10-04 01:34:29 +02:00
parent b8344da734
commit 8df692053a
46 changed files with 1555 additions and 170 deletions
@@ -0,0 +1,42 @@
package appeng.integration.modules.jei;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import appeng.api.features.IGrinderEntry;
class GrinderRecipeHandler implements IRecipeHandler<IGrinderEntry>
{
@Override
public Class<IGrinderEntry> getRecipeClass()
{
return IGrinderEntry.class;
}
@Override
public String getRecipeCategoryUid()
{
return GrinderRecipeCategory.UID;
}
@Override
public String getRecipeCategoryUid( IGrinderEntry recipe )
{
return GrinderRecipeCategory.UID;
}
@Override
public IRecipeWrapper getRecipeWrapper( IGrinderEntry recipe )
{
return new GrinderRecipeWrapper( recipe );
}
@Override
public boolean isRecipeValid( IGrinderEntry recipe )
{
return true;
}
}