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;
|
|
|
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
|
|
|
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import javax.annotation.Nullable;
|
2016-01-20 20:09:03 +01:00
|
|
|
import java.util.ArrayList;
|
2016-01-17 22:57:32 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class ReconstructorRecipeWrapper extends RecipeWrapperWithButton implements IRecipeWrapper{
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List getInputs(){
|
|
|
|
return this.theRecipe.getInputs();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List getOutputs(){
|
|
|
|
return this.theRecipe.getOutputs();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<FluidStack> getFluidInputs(){
|
2016-01-20 20:09:03 +01:00
|
|
|
return new ArrayList<FluidStack>();
|
2016-01-17 22:57:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<FluidStack> getFluidOutputs(){
|
2016-01-20 20:09:03 +01:00
|
|
|
return new ArrayList<FluidStack>();
|
2016-01-17 22:57:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-05-29 23:49:35 +02:00
|
|
|
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY){
|
2016-01-17 22:57:32 +01:00
|
|
|
this.updateButton(minecraft, mouseX, mouseY);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-05-29 23:49:35 +02:00
|
|
|
public void drawAnimations(Minecraft minecraft, int recipeWidth, int recipeHeight){
|
2016-01-17 22:57:32 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
@Override
|
|
|
|
public List<String> getTooltipStrings(int mouseX, int mouseY){
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-05-29 23:49:35 +02:00
|
|
|
public boolean handleClick(Minecraft minecraft, int mouseX, int mouseY, int mouseButton){
|
2016-01-17 22:57:32 +01:00
|
|
|
return this.handleClick(minecraft, mouseX, mouseY);
|
|
|
|
}
|
|
|
|
|
|
|
|
@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
|
|
|
}
|