summaryrefslogtreecommitdiff
path: root/ihl/nei_integration/LabElectrolyzerRecipeHandler.java
blob: 6948a314b5ab691243eb660d3301b3dc7f4eb96d (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
package ihl.nei_integration;

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

import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect;
import ihl.processing.chemistry.LabElectrolyzerGui;
import ihl.processing.chemistry.LabElectrolyzerTileEntity;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;


public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler
{
    @Override
	public Class <? extends GuiContainer > getGuiClass()
    {
        return LabElectrolyzerGui.class;
    }
    
    @Override
    protected int[] getInputPosX()
    {
        return new int[]{42-5,60-5,78-5};
    }

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

    @Override
    protected int[] getOutputPosX()
    {
        return new int[]{8-5,87-5,106-5};
    }

    @Override
    protected int[] getOutputPosY()
    {
        return new int[]{15-11,51-11,15-11};
    }


    @Override
	public String getRecipeName()
    {
        return "Lab electrolyzer";
    }

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

    @Override
	public String getGuiTexture()
    {
        return "ihl:textures/gui/GUILabElectrolyzer.png";
    }
    
    @Override
    public void loadTransferRects()
    {
        this.transferRects.add(new RecipeTransferRect(new Rectangle(7-5,32-10, 18, 18), this.getRecipeId(), new Object[0]));
        this.transferRects.add(new RecipeTransferRect(new Rectangle(86-5,32-10, 37, 18), this.getRecipeId(), new Object[0]));
    }


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

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