ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/jei/coffee/CoffeeMachineRecipeHandler.java
Ellpeck 59d835ed4f Added Coffee Machine JEI recipe
Removed some stuff from the API that doesn't really belong there
2016-01-17 12:17:24 +01:00

45 lines
1.2 KiB
Java

/*
* This file ("CoffeeMachineRecipeHandler.java") is part of the Actually Additions Mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense/
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2016 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.jei.coffee;
import de.ellpeck.actuallyadditions.api.recipe.coffee.CoffeeIngredient;
import de.ellpeck.actuallyadditions.mod.nei.NEICoffeeMachineRecipe;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeWrapper;
import javax.annotation.Nonnull;
public class CoffeeMachineRecipeHandler implements IRecipeHandler<CoffeeIngredient>{
@Nonnull
@Override
public Class getRecipeClass(){
return CoffeeIngredient.class;
}
@Nonnull
@Override
public String getRecipeCategoryUid(){
return NEICoffeeMachineRecipe.NAME;
}
@Nonnull
@Override
public IRecipeWrapper getRecipeWrapper(@Nonnull CoffeeIngredient recipe){
return new CoffeeMachineRecipeWrapper(recipe);
}
@Override
public boolean isRecipeValid(@Nonnull CoffeeIngredient recipe){
return true;
}
}