summaryrefslogtreecommitdiff
path: root/ihl/nei_integration/ImpregnatingMachineRecipeHandler.java
blob: e7496171108a26288f691c13703f62abe9e7c217 (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
99
100
101
102
103
104
105
106
107
package ihl.nei_integration;

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

import codechicken.lib.gui.GuiDraw;
import ihl.processing.metallurgy.ImpregnatingMachineGui;
import ihl.processing.metallurgy.ImpregnatingMachineTileEntity;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.StatCollector;


public class ImpregnatingMachineRecipeHandler extends MachineRecipeHandler
{
    @Override
	public Class <? extends GuiContainer > getGuiClass()
    {
        return ImpregnatingMachineGui.class;
    }
    
    @Override
    protected int[] getInputPosX()
    {
        return new int[]{116-5};
    }

    @Override
    protected int[] getInputPosY()
    {
        return new int[]{16-11};
    }
    
    @Override
    protected int[] getFluidInputPosX()
    {
        return new int[]{24-5,6-5};
    }

    @Override
    protected int[] getFluidInputPosY()
    {
        return new int[]{16-11};
    }

    @Override
    protected int[] getOutputPosX()
    {
        return new int[]{116-5};
    }

    @Override
    protected int[] getOutputPosY()
    {
        return new int[]{41-11,59-11};
    }
    
    @Override
    protected int[] getFluidOutputPosX()
    {
        return new int[]{24-5};
    }

    @Override
    protected int[] getFluidOutputPosY()
    {
        return new int[]{52-11};
    }

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

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

    @Override
	public String getOverlayIdentifier()
    {
        return "impregnatingMachine";
    }
    
    @Override
    public void loadTransferRects()
    {
        this.transferRects.add(new RecipeTransferRect(new Rectangle(134-5, 0, 35, 65), this.getRecipeId(), new Object[0]));
    }
    
    @Override
    public void drawBackground(int i)
    {
    	super.drawBackground(i);
        GuiDraw.drawTexturedModalRect(5-5, 15-11, 23, 15, 18, 18);
    }

    @Override
	public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
    {
        return ImpregnatingMachineTileEntity.getRecipes();
    }
}