public GuiCombustionGenerator(InventoryPlayer par1InventoryPlayer, TileCombustionGenerator te) {
super(te, new ContainerCombustionEngine(par1InventoryPlayer, te));
this.gen = te;
addToolTip(new GuiToolTip(new Rectangle(114, 21, 15, 47), "") {
@Override
protected void updateText() {
text.clear();
String heading = Lang.localize("combustionGenerator.coolantTank");
if(gen.getCoolantTank().getFluid() != null) {
heading += ": " + gen.getCoolantTank().getFluid().getFluid().getLocalizedName();
}
text.add(heading);
text.add(Fluids.toCapactityString(gen.getCoolantTank()));
}
});
addToolTip(new GuiToolTip(new Rectangle(48, 21, 15, 47), "") {
@Override
protected void updateText() {
text.clear();
String heading = Lang.localize("combustionGenerator.fuelTank");