Somthing is having issues I blame @Mj11jM ;)
This commit is contained in:
parent
4f333c70ae
commit
5511a65507
4 changed files with 53 additions and 1 deletions
|
@ -10,6 +10,7 @@ import techreborn.compat.nei.recipes.AlloySmelterRecipeHandler;
|
||||||
import techreborn.compat.nei.recipes.AssemblingMachineRecipeHandler;
|
import techreborn.compat.nei.recipes.AssemblingMachineRecipeHandler;
|
||||||
import techreborn.compat.nei.recipes.GenericRecipeHander;
|
import techreborn.compat.nei.recipes.GenericRecipeHander;
|
||||||
import techreborn.compat.nei.recipes.ImplosionCompressorRecipeHandler;
|
import techreborn.compat.nei.recipes.ImplosionCompressorRecipeHandler;
|
||||||
|
import techreborn.compat.nei.recipes.LatheRecipeHandler;
|
||||||
import techreborn.lib.ModInfo;
|
import techreborn.lib.ModInfo;
|
||||||
import codechicken.nei.api.API;
|
import codechicken.nei.api.API;
|
||||||
import codechicken.nei.api.IConfigureNEI;
|
import codechicken.nei.api.IConfigureNEI;
|
||||||
|
@ -48,6 +49,10 @@ public class NEIConfig implements IConfigureNEI {
|
||||||
AssemblingMachineRecipeHandler assembling = new AssemblingMachineRecipeHandler();
|
AssemblingMachineRecipeHandler assembling = new AssemblingMachineRecipeHandler();
|
||||||
API.registerUsageHandler(assembling);
|
API.registerUsageHandler(assembling);
|
||||||
API.registerRecipeHandler(assembling);
|
API.registerRecipeHandler(assembling);
|
||||||
|
|
||||||
|
LatheRecipeHandler lathe = new LatheRecipeHandler();
|
||||||
|
API.registerUsageHandler(lathe);
|
||||||
|
API.registerRecipeHandler(lathe);
|
||||||
|
|
||||||
API.registerRecipeHandler(centrifugeRecipeHandler);
|
API.registerRecipeHandler(centrifugeRecipeHandler);
|
||||||
API.registerUsageHandler(centrifugeRecipeHandler);
|
API.registerUsageHandler(centrifugeRecipeHandler);
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
package techreborn.compat.nei.recipes;
|
||||||
|
|
||||||
|
import codechicken.nei.PositionedStack;
|
||||||
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
|
import techreborn.api.recipe.IBaseRecipeType;
|
||||||
|
import techreborn.client.gui.GuiAlloySmelter;
|
||||||
|
import techreborn.client.gui.GuiImplosionCompressor;
|
||||||
|
import techreborn.client.gui.GuiLathe;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class LatheRecipeHandler extends GenericRecipeHander implements INeiBaseRecipe {
|
||||||
|
@Override
|
||||||
|
public void addPositionedStacks(List<PositionedStack> input, List<PositionedStack> outputs, IBaseRecipeType recipeType) {
|
||||||
|
int offset = 4;
|
||||||
|
PositionedStack pStack = new PositionedStack(recipeType.getInputs().get(0), 56 - offset, 17 - offset);
|
||||||
|
pStack.setMaxSize(1);
|
||||||
|
input.add(pStack);
|
||||||
|
|
||||||
|
PositionedStack pStack3 = new PositionedStack(recipeType.getOutputs().get(0), 116 - offset, 35 - offset);
|
||||||
|
pStack3.setMaxSize(1);
|
||||||
|
outputs.add(pStack3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getRecipeName() {
|
||||||
|
return "latheRecipe";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGuiTexture() {
|
||||||
|
return "techreborn:textures/gui/lathe.png";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<? extends GuiContainer> getGuiClass() {
|
||||||
|
return GuiLathe.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public INeiBaseRecipe getNeiBaseRecipe() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,6 +13,7 @@ import techreborn.config.ConfigTechReborn;
|
||||||
import techreborn.recipes.AlloySmelterRecipe;
|
import techreborn.recipes.AlloySmelterRecipe;
|
||||||
import techreborn.recipes.AssemblingMachineRecipe;
|
import techreborn.recipes.AssemblingMachineRecipe;
|
||||||
import techreborn.recipes.ImplosionCompressorRecipe;
|
import techreborn.recipes.ImplosionCompressorRecipe;
|
||||||
|
import techreborn.recipes.LatheRecipe;
|
||||||
import techreborn.util.CraftingHelper;
|
import techreborn.util.CraftingHelper;
|
||||||
import techreborn.util.LogHelper;
|
import techreborn.util.LogHelper;
|
||||||
|
|
||||||
|
@ -201,6 +202,8 @@ public class ModRecipes {
|
||||||
|
|
||||||
RecipeHanderer.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.coal), new ItemStack(Blocks.sand), new ItemStack(Items.diamond), 120, 5));
|
RecipeHanderer.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.coal), new ItemStack(Blocks.sand), new ItemStack(Items.diamond), 120, 5));
|
||||||
RecipeHanderer.addRecipe(new AssemblingMachineRecipe(new ItemStack(Items.coal), new ItemStack(Blocks.sand), new ItemStack(Items.diamond), 120, 5));
|
RecipeHanderer.addRecipe(new AssemblingMachineRecipe(new ItemStack(Items.coal), new ItemStack(Blocks.sand), new ItemStack(Items.diamond), 120, 5));
|
||||||
|
//TODO BORKEN
|
||||||
|
// RecipeHanderer.addRecipe(new LatheRecipe(new ItemStack(Items.coal), new ItemStack(Items.diamond), 120, 5));
|
||||||
|
|
||||||
LogHelper.info("Machine Recipes Added");
|
LogHelper.info("Machine Recipes Added");
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ public class LatheRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public LatheRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick)
|
public LatheRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick)
|
||||||
{
|
{
|
||||||
super("alloySmelterRecipe", tickTime, euPerTick);
|
super("latheRecipe", tickTime, euPerTick);
|
||||||
if(input1 != null)
|
if(input1 != null)
|
||||||
inputs.add(input1);
|
inputs.add(input1);
|
||||||
if(output1 != null)
|
if(output1 != null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue