001package net.minecraft.client.multiplayer;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import net.minecraft.client.Minecraft;
006
007@SideOnly(Side.CLIENT)
008public class LanServer
009{
010    private String lanServerMotd;
011    private String lanServerIpPort;
012
013    /** Last time this LanServer was seen. */
014    private long timeLastSeen;
015
016    public LanServer(String par1Str, String par2Str)
017    {
018        this.lanServerMotd = par1Str;
019        this.lanServerIpPort = par2Str;
020        this.timeLastSeen = Minecraft.getSystemTime();
021    }
022
023    public String getServerMotd()
024    {
025        return this.lanServerMotd;
026    }
027
028    public String getServerIpPort()
029    {
030        return this.lanServerIpPort;
031    }
032
033    /**
034     * Updates the time this LanServer was last seen.
035     */
036    public void updateLastSeen()
037    {
038        this.timeLastSeen = Minecraft.getSystemTime();
039    }
040}