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
|
package binnie.craftgui.extratrees.dictionary;
import binnie.core.AbstractMod;
import binnie.core.machines.IMachine;
import binnie.core.machines.Machine;
import binnie.core.machines.MachinePackage;
import binnie.craftgui.core.geometry.IPoint;
import binnie.craftgui.core.geometry.Position;
import binnie.craftgui.minecraft.Window;
import binnie.craftgui.minecraft.control.ControlEnergyBar;
import binnie.craftgui.minecraft.control.ControlErrorState;
import binnie.craftgui.minecraft.control.ControlLiquidTank;
import binnie.craftgui.minecraft.control.ControlPlayerInventory;
import binnie.craftgui.minecraft.control.ControlSlot;
import binnie.craftgui.minecraft.control.ControlSlotArray;
import binnie.extratrees.ExtraTrees;
import binnie.extratrees.machines.Brewery;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
public class WindowBrewery
extends Window
{
public WindowBrewery(EntityPlayer player, IInventory inventory, Side side)
{
super(228.0F, 218.0F, player, inventory, side);
}
protected AbstractMod getMod()
{
return ExtraTrees.instance;
}
protected String getName()
{
return "Brewery";
}
public void initialiseClient()
{
setTitle(Machine.getMachine(getInventory()).getPackage().getDisplayName());
new ControlSlotArray(this, 42, 32, 1, 3).create(Brewery.slotRecipeGrains);
new ControlSlot(this, 16.0F, 41.0F).assign(Brewery.slotRecipeInput);
new ControlSlot(this, 105.0F, 77.0F).assign(Brewery.slotRecipeYeast);
new ControlLiquidTank(this, 76, 32).setTankID(Brewery.tankInput);
new ControlLiquidTank(this, 162, 32).setTankID(Brewery.tankOutput);
new ControlEnergyBar(this, 196, 32, 16, 60, Position.Bottom);
new ControlBreweryProgress(this, 110.0F, 32.0F);
new ControlSlotArray(this, (int)(getSize().x() / 2.0F - 81.0F), 104, 9, 1).create(Brewery.slotInventory);
new ControlPlayerInventory(this);
new ControlErrorState(this, 133.0F, 79.0F);
}
public static Window create(EntityPlayer player, IInventory inventory, Side side)
{
return new WindowBrewery(player, inventory, side);
}
}
|