package micdoodle8.mods.galacticraft.planets.asteroids.client.jei.tier3rocket;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import micdoodle8.mods.galacticraft.core.client.jei.RecipeCategories;
import micdoodle8.mods.galacticraft.core.util.GCLog;
import javax.annotation.Nonnull;
public class Tier3RocketRecipeHandler implements IRecipeHandler<Tier3RocketRecipeWrapper>
{
@Nonnull
@Override
public Class<Tier3RocketRecipeWrapper> getRecipeClass()
{
return Tier3RocketRecipeWrapper.class;
}
@Nonnull
@Override
public String getRecipeCategoryUid()
{
return RecipeCategories.ROCKET_T3_ID;
}
@Nonnull
@Override
public IRecipeWrapper getRecipeWrapper(@Nonnull Tier3RocketRecipeWrapper recipe)
{
return recipe;
}
@Override
public boolean isRecipeValid(@Nonnull Tier3RocketRecipeWrapper recipe)
{
if (recipe.getInputs().size() != 21)
{
GCLog.severe(this.getClass().getSimpleName() + " JEI recipe has wrong number of inputs!");
}
if (recipe.getOutputs().size() != 1)
{
GCLog.severe(this.getClass().getSimpleName() + " JEI recipe has wrong number of outputs!");
}
return true;
}
}