2016-02-25 13:17:33 +00:00
|
|
|
package techreborn.compat.jei.grinder;
|
|
|
|
|
|
|
|
import mezz.jei.api.IJeiHelpers;
|
|
|
|
import mezz.jei.api.recipe.IRecipeHandler;
|
|
|
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
|
|
|
import techreborn.api.recipe.machines.GrinderRecipe;
|
|
|
|
import techreborn.compat.jei.RecipeCategoryUids;
|
|
|
|
|
2016-10-08 20:46:16 +01:00
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
|
|
|
public class GrinderRecipeHandler implements IRecipeHandler<GrinderRecipe> {
|
2016-02-25 13:17:33 +00:00
|
|
|
@Nonnull
|
|
|
|
private final IJeiHelpers jeiHelpers;
|
|
|
|
|
2016-10-08 20:46:16 +01:00
|
|
|
public GrinderRecipeHandler(
|
|
|
|
@Nonnull
|
|
|
|
IJeiHelpers jeiHelpers) {
|
2016-02-25 13:17:33 +00:00
|
|
|
this.jeiHelpers = jeiHelpers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 20:46:16 +01:00
|
|
|
public Class<GrinderRecipe> getRecipeClass() {
|
2016-02-25 13:17:33 +00:00
|
|
|
return GrinderRecipe.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 20:46:16 +01:00
|
|
|
public String getRecipeCategoryUid() {
|
2016-02-25 13:17:33 +00:00
|
|
|
return RecipeCategoryUids.GRINDER;
|
|
|
|
}
|
|
|
|
|
2016-06-08 21:06:41 +01:00
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 20:46:16 +01:00
|
|
|
public String getRecipeCategoryUid(
|
|
|
|
@Nonnull
|
|
|
|
GrinderRecipe recipe) {
|
2016-06-08 21:06:41 +01:00
|
|
|
return RecipeCategoryUids.GRINDER;
|
|
|
|
}
|
|
|
|
|
2016-02-25 13:17:33 +00:00
|
|
|
@Nonnull
|
|
|
|
@Override
|
2016-10-08 20:46:16 +01:00
|
|
|
public IRecipeWrapper getRecipeWrapper(
|
|
|
|
@Nonnull
|
|
|
|
GrinderRecipe recipe) {
|
2016-02-25 13:17:33 +00:00
|
|
|
return new GrinderRecipeWrapper(jeiHelpers, recipe);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-10-08 20:46:16 +01:00
|
|
|
public boolean isRecipeValid(
|
|
|
|
@Nonnull
|
|
|
|
GrinderRecipe recipe) {
|
2016-02-25 13:17:33 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|