ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/jei/booklet/BookletRecipeHandler.java
Ellpeck f35a041a55 Booklet rework, part 1.
This is an API breaking change, by the way.
2016-11-10 19:50:01 +01:00

45 lines
1.2 KiB
Java

/*
* This file ("BookletRecipeHandler.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2016 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.jei.booklet;
import de.ellpeck.actuallyadditions.api.booklet.IBookletPage;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
public class BookletRecipeHandler implements IRecipeHandler<IBookletPage>{
@Override
public Class getRecipeClass(){
return IBookletPage.class;
}
@Override
public String getRecipeCategoryUid(IBookletPage recipe){
return this.getRecipeCategoryUid();
}
@Override
public String getRecipeCategoryUid(){
return BookletRecipeCategory.NAME;
}
@Override
public IRecipeWrapper getRecipeWrapper(IBookletPage recipe){
return new BookletRecipeWrapper(recipe);
}
@Override
public boolean isRecipeValid(IBookletPage recipe){
return true;
}
}