Finishing off for tonight.

This commit is contained in:
modmuss50 2015-04-10 00:18:13 +01:00
parent da25ed6add
commit 700012697e
6 changed files with 375 additions and 9 deletions

View file

@ -16,9 +16,9 @@ public class ContainerThermalGenerator extends Container {
this.tileThermalGenerator = tileThermalGenerator;
this.player = player;
this.addSlotToContainer(new Slot(player.inventory, 40, 80, 17));
this.addSlotToContainer(new SlotOutput(player.inventory, 41, 80, 53));
this.addSlotToContainer(new SlotFake(player.inventory, 42, 59, 42, false, false, 1));
this.addSlotToContainer(new Slot(tileThermalGenerator.inventory, 0, 80, 17));
this.addSlotToContainer(new SlotOutput(tileThermalGenerator.inventory, 1, 80, 53));
this.addSlotToContainer(new SlotFake(tileThermalGenerator.inventory, 2, 59, 42, false, false, 1));
int i;
@ -26,13 +26,13 @@ public class ContainerThermalGenerator extends Container {
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(player.inventory , j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
}
}
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(player.inventory , i, 8 + i * 18, 142));
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 142));
}
}

View file

@ -11,10 +11,13 @@ public class GuiThermalGenerator extends GuiContainer {
private static final ResourceLocation texture = new ResourceLocation("techreborn", "textures/gui/ThermalGenerator.png");
TileThermalGenerator tile;
public GuiThermalGenerator(EntityPlayer player, TileThermalGenerator tile) {
super(new ContainerThermalGenerator(tile, player));
this.xSize = 176;
this .ySize = 167;
this.ySize = 167;
this.tile = tile;
}
@Override
@ -30,6 +33,6 @@ public class GuiThermalGenerator extends GuiContainer {
this.fontRendererObj.drawString("Thermal Generator", 8, 6, 4210752);
this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
this.fontRendererObj.drawString("Liquid Amount", 10, 20, 16448255);
this.fontRendererObj.drawString("0", 10, 30, 16448255);
this.fontRendererObj.drawString(tile.tank.getFluidAmount() + "", 10, 30, 16448255);
}
}