ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeHandler.java

45 lines
1.2 KiB
Java
Raw Normal View History

2016-01-17 22:57:32 +01:00
/*
* This file ("ReconstructorRecipeHandler.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
*
* © 2016 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.jei.reconstructor;
2016-05-14 13:51:18 +02:00
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;
2016-01-17 22:57:32 +01:00
import de.ellpeck.actuallyadditions.mod.nei.NEIReconstructorRecipe;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
2016-05-14 13:51:18 +02:00
public class ReconstructorRecipeHandler implements IRecipeHandler<LensConversionRecipe>{
2016-01-17 22:57:32 +01:00
@Nonnull
@Override
public Class getRecipeClass(){
2016-05-14 13:51:18 +02:00
return LensConversionRecipe.class;
2016-01-17 22:57:32 +01:00
}
@Nonnull
@Override
public String getRecipeCategoryUid(){
return NEIReconstructorRecipe.NAME;
}
@Nonnull
@Override
2016-05-14 13:51:18 +02:00
public IRecipeWrapper getRecipeWrapper(@Nonnull LensConversionRecipe recipe){
2016-01-17 22:57:32 +01:00
return new ReconstructorRecipeWrapper(recipe);
}
@Override
2016-05-14 13:51:18 +02:00
public boolean isRecipeValid(@Nonnull LensConversionRecipe recipe){
2016-01-17 22:57:32 +01:00
return true;
}
}