    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallableServerProfiler implements Callable
    007    {
    008        final MinecraftServer field_82555_a;
    009
    010        public CallableServerProfiler(MinecraftServer par1MinecraftServer)
    011        {
    012            this.field_82555_a = par1MinecraftServer;
    013        }
    014
    015        public String func_82554_a()
    016        {
    017            return this.field_82555_a.theProfiler.profilingEnabled ? this.field_82555_a.theProfiler.getNameOfLastSection() : "N/A (disabled)";
    018        }
    019
    020        public Object call()
    021        {
    022            return this.func_82554_a();
    023        }
    024    }