    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallableIsServerModded implements Callable
    007    {
    008        /** Reference to the MinecraftServer object. */
    009        final MinecraftServer mcServer;
    010
    011        public CallableIsServerModded(MinecraftServer par1MinecraftServer)
    012        {
    013            this.mcServer = par1MinecraftServer;
    014        }
    015
    016        public String func_82556_a()
    017        {
    018            String var1 = this.mcServer.getServerModName();
    019            return !var1.equals("vanilla") ? "Definitely; \'" + var1 + "\'" : "Unknown (can\'t tell)";
    020        }
    021
    022        public Object call()
    023        {
    024            return this.func_82556_a();
    025        }
    026    }