2016-03-13 17:08:30 +01:00
|
|
|
package techreborn.compat.jei.industrialElectrolyzer;
|
|
|
|
|
|
|
|
import mezz.jei.api.IJeiHelpers;
|
|
|
|
import mezz.jei.api.recipe.IRecipeHandler;
|
|
|
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
|
|
|
import techreborn.api.recipe.machines.IndustrialElectrolyzerRecipe;
|
|
|
|
import techreborn.compat.jei.RecipeCategoryUids;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
|
|
|
public class IndustrialElectrolyzerRecipeHandler implements IRecipeHandler<IndustrialElectrolyzerRecipe> {
|
2016-03-13 17:08:30 +01:00
|
|
|
@Nonnull
|
|
|
|
private final IJeiHelpers jeiHelpers;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public IndustrialElectrolyzerRecipeHandler(
|
|
|
|
@Nonnull
|
|
|
|
IJeiHelpers jeiHelpers) {
|
2016-03-13 17:08:30 +01:00
|
|
|
this.jeiHelpers = jeiHelpers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 21:46:16 +02:00
|
|
|
public Class<IndustrialElectrolyzerRecipe> getRecipeClass() {
|
2016-03-13 17:08:30 +01:00
|
|
|
return IndustrialElectrolyzerRecipe.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 21:46:16 +02:00
|
|
|
public String getRecipeCategoryUid() {
|
2016-03-13 17:08:30 +01:00
|
|
|
return RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER;
|
|
|
|
}
|
|
|
|
|
2016-06-08 22:06:41 +02:00
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 21:46:16 +02:00
|
|
|
public String getRecipeCategoryUid(
|
|
|
|
@Nonnull
|
|
|
|
IndustrialElectrolyzerRecipe recipe) {
|
2016-06-08 22:06:41 +02:00
|
|
|
return RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER;
|
|
|
|
}
|
|
|
|
|
2016-03-13 17:08:30 +01:00
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 21:46:16 +02:00
|
|
|
public IRecipeWrapper getRecipeWrapper(
|
|
|
|
@Nonnull
|
|
|
|
IndustrialElectrolyzerRecipe recipe) {
|
2016-03-13 17:08:30 +01:00
|
|
|
return new IndustrialElectrolyzerRecipeWrapper(jeiHelpers, recipe);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-10-08 21:46:16 +02:00
|
|
|
public boolean isRecipeValid(
|
|
|
|
@Nonnull
|
|
|
|
IndustrialElectrolyzerRecipe recipe) {
|
2016-03-13 17:08:30 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|