package com.yolp900.itsjustacharm.common.integration.jei.constructionTable;
import com.yolp900.itsjustacharm.reference.LibModIntegrations;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class RecipeHandlerConstructionTable implements IRecipeHandler<RecipeWrapperConstructionTable> {
@Nonnull
@Override
public Class<RecipeWrapperConstructionTable> getRecipeClass() {
return RecipeWrapperConstructionTable.class;
}
@Nonnull
@Override
public String getRecipeCategoryUid() {
return LibModIntegrations.JEI.Recipes.ConstructionTable.getUid();
}
@Nonnull
@Override
public String getRecipeCategoryUid(@Nonnull RecipeWrapperConstructionTable recipe) {
return LibModIntegrations.JEI.Recipes.ConstructionTable.getUid();
}
@Nonnull
@Override
public IRecipeWrapper getRecipeWrapper(@Nonnull RecipeWrapperConstructionTable recipe) {
return recipe;
}
@Override
public boolean isRecipeValid(@Nonnull RecipeWrapperConstructionTable recipe) {
return recipe.getInputs().size() > 0 && recipe.getOutputs().size() > 0;
}
}