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
|
package binnie.craftgui.genetics.machine;
import binnie.core.AbstractMod;
import binnie.craftgui.core.geometry.Position;
import binnie.craftgui.minecraft.GUIIcon;
import binnie.craftgui.minecraft.Window;
import binnie.craftgui.minecraft.control.ControlEnergyBar;
import binnie.craftgui.minecraft.control.ControlErrorState;
import binnie.craftgui.minecraft.control.ControlIconDisplay;
import binnie.craftgui.minecraft.control.ControlLiquidTank;
import binnie.craftgui.minecraft.control.ControlMachineProgress;
import binnie.craftgui.minecraft.control.ControlPlayerInventory;
import binnie.craftgui.minecraft.control.ControlSlot;
import binnie.craftgui.minecraft.control.ControlSlotArray;
import binnie.craftgui.resource.Texture;
import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.genetics.Genetics;
import binnie.genetics.core.GeneticsTexture;
import binnie.genetics.machine.Incubator;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
public class WindowIncubator
extends WindowMachine
{
public static Window create(EntityPlayer player, IInventory inventory, Side side)
{
return new WindowIncubator(player, inventory, side);
}
public WindowIncubator(EntityPlayer player, IInventory inventory, Side side)
{
super(228, 196, player, inventory, side);
}
static Texture ProgressBase = new StandardTexture(0, 91, 38, 32, GeneticsTexture.GUIProcess);
static Texture Progress = new StandardTexture(38, 91, 38, 32, GeneticsTexture.GUIProcess);
public void initialiseClient()
{
setTitle("Incubator");
int x = 16;
int y = 32;
new ControlLiquidTank(this, x, y).setTankID(0);
x += 26;
new ControlSlotArray(this, x, y + 3, 1, 3).create(Incubator.slotQueue);
x += 20;
new ControlIconDisplay(this, x, y + 3 + 10, GUIIcon.ArrowRight.getIcon());
x += 18;
new ControlMachineProgress(this, x, y + 6, ProgressBase, Progress, Position.Left);
new ControlSlot(this, x + 11, y + 3 + 10).assign(3);
x += 40;
new ControlIconDisplay(this, x, y + 3 + 10, GUIIcon.ArrowRight.getIcon());
x += 18;
new ControlSlotArray(this, x, y + 3, 1, 3).create(Incubator.slotOutput);
x += 26;
new ControlLiquidTank(this, x, y).setTankID(1);
x += 34;
new ControlEnergyBar(this, x, y + 3, 16, 54, Position.Bottom);
new ControlErrorState(this, 91.0F, 82.0F);
new ControlPlayerInventory(this);
}
public String getTitle()
{
return "Incubator";
}
protected AbstractMod getMod()
{
return Genetics.instance;
}
protected String getName()
{
return "Incubator";
}
}
|