    001package net.minecraft.server;
    002
    003import java.util.concurrent.Callable;
    004
    005public class CallableServerMemoryStats implements Callable
    006{
    007    /** Reference to the MinecraftServer object. */
    008    final MinecraftServer mcServer;
    009
    010    public CallableServerMemoryStats(MinecraftServer par1)
    011    {
    012        this.mcServer = par1;
    013    }
    014
    015    public String callServerMemoryStats()
    016    {
    017        return MinecraftServer.getServerConfigurationManager(this.mcServer).getCurrentPlayerCount() + " / " + MinecraftServer.getServerConfigurationManager(this.mcServer).getMaxPlayers() + "; " + MinecraftServer.getServerConfigurationManager(this.mcServer).playerEntityList;
    018    }
    019
    020    public Object call()
    021    {
    022        return this.callServerMemoryStats();
    023    }
    024}