    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallableServerMemoryStats implements Callable
    007    {
    008        final MinecraftServer field_82552_a;
    009
    010        public CallableServerMemoryStats(MinecraftServer par1MinecraftServer)
    011        {
    012            this.field_82552_a = par1MinecraftServer;
    013        }
    014
    015        public String func_82551_a()
    016        {
    017            int var1 = this.field_82552_a.worldServers[0].func_82732_R().func_82591_c();
    018            int var2 = 56 * var1;
    019            int var3 = var2 / 1024 / 1024;
    020            int var4 = this.field_82552_a.worldServers[0].func_82732_R().func_82590_d();
    021            int var5 = 56 * var4;
    022            int var6 = var5 / 1024 / 1024;
    023            return var1 + " (" + var2 + " bytes; " + var3 + " MB) allocated, " + var4 + " (" + var5 + " bytes; " + var6 + " MB) used";
    024        }
    025
    026        public Object call()
    027        {
    028            return this.func_82551_a();
    029        }
    030    }