    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.util.concurrent.Callable;
    006    import net.minecraft.client.Minecraft;
    007
    008    @SideOnly(Side.CLIENT)
    009    public class CallableClientProfiler implements Callable
    010    {
    011        final Minecraft field_90046_a;
    012
    013        public CallableClientProfiler(Minecraft par1Minecraft)
    014        {
    015            this.field_90046_a = par1Minecraft;
    016        }
    017
    018        public String func_90045_a()
    019        {
    020            return this.field_90046_a.mcProfiler.profilingEnabled ? this.field_90046_a.mcProfiler.getNameOfLastSection() : "N/A (disabled)";
    021        }
    022
    023        public Object call()
    024        {
    025            return this.func_90045_a();
    026        }
    027    }