package net.minecraft.client.mco; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Timer; import net.minecraft.util.Session; @SideOnly(Side.CLIENT) public class McoServerList { private volatile boolean field_98259_a = false; private TimerTaskMcoServerListUpdate field_98257_b; private Timer field_98258_c = new Timer(); private List field_98255_d = new ArrayList(); private boolean field_98256_e = false; private Session field_98254_f; public McoServerList(Session par1Session) { this.field_98254_f = par1Session; this.field_98257_b = new TimerTaskMcoServerListUpdate(this, (McoServerListINNER1)null); this.field_98258_c.schedule(this.field_98257_b, 0L, 10000L); } public synchronized boolean func_98251_a() { return this.field_98256_e; } public synchronized void func_98250_b() { this.field_98256_e = false; } public synchronized List func_98252_c() { return Collections.unmodifiableList(this.field_98255_d); } private synchronized void func_96426_a(List par1List) { if (!par1List.equals(this.field_98255_d)) { this.field_98255_d = par1List; this.field_98256_e = true; } } public synchronized void func_98248_d() { this.field_98259_a = true; this.field_98257_b.cancel(); this.field_98258_c.cancel(); } static Session func_100014_a(McoServerList par0McoServerList) { return par0McoServerList.field_98254_f; } static boolean func_98249_b(McoServerList par0McoServerList) { return par0McoServerList.field_98259_a; } static void func_98247_a(McoServerList par0McoServerList, List par1List) throws IOException { par0McoServerList.func_96426_a(par1List); } }