Search in sources :

Example 6 with Tank

use of buildcraft.lib.fluids.Tank in project BuildCraft by BuildCraft.

the class TileDistiller method getDebugInfo.

@Override
public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {
    Tank[] tanks = { in, outGas, outLiquid };
    left.add("");
    left.add("Sleep = " + sleep);
    for (Tank t : tanks) {
        left.add(StringUtils.capitalize(t.getTankName()) + ":");
        left.add(" " + t.getFluidAmount() + "/" + t.getCapacity() + "mB");
        left.add(" " + (t.getFluid() == null ? "empty" : t.getFluidType().getLocalizedName(t.getFluid())));
    }
}
Also used : Tank(buildcraft.lib.fluids.Tank)

Aggregations

Tank (buildcraft.lib.fluids.Tank)6 ArrayList (java.util.ArrayList)2 Blueprint (buildcraft.core.blueprints.Blueprint)1 BptBuilderBlueprint (buildcraft.core.blueprints.BptBuilderBlueprint)1 RequirementItemStack (buildcraft.core.blueprints.RequirementItemStack)1 BuilderItemMetaPair (buildcraft.core.builders.BuilderItemMetaPair)1 AdvancedSlot (buildcraft.core.lib.gui.AdvancedSlot)1 List (java.util.List)1 GuiButton (net.minecraft.client.gui.GuiButton)1 ItemStack (net.minecraft.item.ItemStack)1 Fluid (net.minecraftforge.fluids.Fluid)1