TechReborn/1.11/jei/grinder/GrinderRecipeHandler.java

56 lines
1.1 KiB
Java
Raw Normal View History

2016-02-25 14:17:33 +01: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 21:46:16 +02:00
import javax.annotation.Nonnull;
public class GrinderRecipeHandler implements IRecipeHandler<GrinderRecipe> {
2016-02-25 14:17:33 +01:00
@Nonnull
private final IJeiHelpers jeiHelpers;
2016-10-08 21:46:16 +02:00
public GrinderRecipeHandler(
@Nonnull
IJeiHelpers jeiHelpers) {
2016-02-25 14:17:33 +01:00
this.jeiHelpers = jeiHelpers;
}
@Nonnull
@Override
2016-10-08 21:46:16 +02:00
public Class<GrinderRecipe> getRecipeClass() {
2016-02-25 14:17:33 +01:00
return GrinderRecipe.class;
}
@Nonnull
@Override
2016-10-08 21:46:16 +02:00
public String getRecipeCategoryUid() {
2016-02-25 14:17:33 +01:00
return RecipeCategoryUids.GRINDER;
}
2016-06-08 22:06:41 +02:00
@Nonnull
@Override
2016-10-08 21:46:16 +02:00
public String getRecipeCategoryUid(
@Nonnull
GrinderRecipe recipe) {
2016-06-08 22:06:41 +02:00
return RecipeCategoryUids.GRINDER;
}
2016-02-25 14:17:33 +01:00
@Nonnull
@Override
2016-10-08 21:46:16 +02:00
public IRecipeWrapper getRecipeWrapper(
@Nonnull
GrinderRecipe recipe) {
2016-02-25 14:17:33 +01:00
return new GrinderRecipeWrapper(jeiHelpers, recipe);
}
@Override
2016-10-08 21:46:16 +02:00
public boolean isRecipeValid(
@Nonnull
GrinderRecipe recipe) {
2016-02-25 14:17:33 +01:00
return true;
}
}