ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeWrapper.java

81 lines
2.2 KiB
Java
Raw Normal View History

2016-01-17 22:57:32 +01:00
/*
2016-05-16 22:52:27 +02:00
* This file ("ReconstructorRecipeWrapper.java") is part of the Actually Additions mod for Minecraft.
2016-01-17 22:57:32 +01:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2016-01-17 22:57:32 +01:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-05-16 22:54:42 +02:00
* © 2015-2016 Ellpeck
2016-01-17 22:57:32 +01:00
*/
package de.ellpeck.actuallyadditions.mod.jei.reconstructor;
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
2016-05-14 13:51:18 +02:00
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;
2016-01-17 22:57:32 +01:00
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
import de.ellpeck.actuallyadditions.mod.booklet.BookletUtils;
import de.ellpeck.actuallyadditions.mod.jei.RecipeWrapperWithButton;
2016-10-29 10:47:33 +02:00
import mezz.jei.api.ingredients.IIngredients;
2016-01-17 22:57:32 +01:00
import mezz.jei.api.recipe.IRecipeWrapper;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import java.util.ArrayList;
import java.util.Collections;
2016-01-17 22:57:32 +01:00
import java.util.List;
2016-10-31 20:19:55 +01:00
public class ReconstructorRecipeWrapper extends RecipeWrapperWithButton{
2016-01-17 22:57:32 +01:00
2016-05-19 20:05:12 +02:00
public final LensConversionRecipe theRecipe;
2016-01-17 22:57:32 +01:00
2016-05-14 13:51:18 +02:00
public ReconstructorRecipeWrapper(LensConversionRecipe recipe){
2016-01-17 22:57:32 +01:00
this.theRecipe = recipe;
}
2016-10-29 10:47:33 +02:00
@Override
public void getIngredients(IIngredients ingredients){
}
2016-01-17 22:57:32 +01:00
@Override
public List getInputs(){
return Collections.singletonList(this.theRecipe.inputStack);
2016-01-17 22:57:32 +01:00
}
@Override
public List getOutputs(){
return Collections.singletonList(this.theRecipe.outputStack);
2016-01-17 22:57:32 +01:00
}
@Override
public List<FluidStack> getFluidInputs(){
return new ArrayList<FluidStack>();
2016-01-17 22:57:32 +01:00
}
@Override
public List<FluidStack> getFluidOutputs(){
return new ArrayList<FluidStack>();
2016-01-17 22:57:32 +01:00
}
@Override
public void drawAnimations(Minecraft minecraft, int recipeWidth, int recipeHeight){
2016-01-17 22:57:32 +01:00
}
@Override
public int getButtonX(){
return 3;
}
@Override
public int getButtonY(){
return 40;
}
2016-02-01 17:49:55 +01:00
@Override
public BookletPage getPage(){
return BookletUtils.getFirstPageForStack(new ItemStack(InitBlocks.blockAtomicReconstructor));
}
2016-01-17 22:57:32 +01:00
}