summaryrefslogtreecommitdiff
path: root/ihl/nei_integration/AchesonFurnaceRecipeHandler.java
blob: 8571f3a649c69605becfaef24d04f3dc9b94a02e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package ihl.nei_integration;

import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import codechicken.nei.PositionedStack;
import ihl.processing.metallurgy.AchesonFurnaceGui;
import ihl.processing.metallurgy.AchesonFurnanceTileEntity;
import ihl.recipes.RecipeInputOreDictionaryList;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import ihl.utils.IHLUtils;
import net.minecraft.client.gui.inventory.GuiContainer;


public class AchesonFurnaceRecipeHandler extends MachineRecipeHandler
{
    @Override
	public Class <? extends GuiContainer > getGuiClass()
    {
        return AchesonFurnaceGui.class;
    }
    
    @Override
    protected int[] getInputPosX()
    {
        return new int[]{34-5,34-5};
    }

    @Override
    protected int[] getInputPosY()
    {
        return new int[]{41-11,23-11};
    }

    @Override
    protected int[] getOutputPosX()
    {
        return new int[]{107-5,107-5};
    }
    
    @Override
    protected int[] getOutputPosY()
    {
        return new int[]{41-11,23-11};
    }

    @Override
	public String getRecipeName()
    {
        return "Acheson Furnace";
    }

    @Override
	public String getRecipeId()
    {
        return "ihl.achesonFurnace";
    }

    @Override
	public String getGuiTexture()
    {
        return "ihl:textures/gui/GUIAchesonFurnaceNEI.png";
    }

    @Override
    public void loadTransferRects()
    {
        this.transferRects.add(new RecipeTransferRect(new Rectangle(40-5, 55-11, 90, 30), this.getRecipeId(), new Object[0]));
    }

    @Override
	public String getOverlayIdentifier()
    {
        return "achesonFurnace";
    }

    @Override
	public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
    {
        return AchesonFurnanceTileEntity.getRecipes();
    }
    
    @Override
    public List<PositionedStack> getAdditionalIngredients()
    {
    	List<PositionedStack> ps = new ArrayList<PositionedStack>();
    	RecipeInputOreDictionaryList ari = new RecipeInputOreDictionaryList(new String[] {"stickCoal","stickGraphite"});
    	ps.add(new PositionedStack(ari.getInputs(),16-5,41-11));
    	ps.add(new PositionedStack(ari.getInputs(),52-5,41-11));
    	ps.add(new PositionedStack(IHLUtils.getOreDictItemStack("stickGraphite"),89-5,41-11));
    	ps.add(new PositionedStack(IHLUtils.getOreDictItemStack("stickGraphite"),125-5,41-11));
        return ps;
    }
    
}