package net.minecraft.stats;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

final class StatTypeDistance implements IStatType
{
    @SideOnly(Side.CLIENT)
    public String func_75843_a(int par1)
    {
        double var2 = (double)par1 / 100.0D;
        double var4 = var2 / 1000.0D;
        return var4 > 0.5D ? StatBase.func_75969_k().format(var4) + " km" : (var2 > 0.5D ? StatBase.func_75969_k().format(var2) + " m" : par1 + " cm");
    }
}
