001package net.minecraft.scoreboard;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import java.util.Collection;
006import java.util.HashSet;
007import java.util.Set;
008
009public class ScorePlayerTeam
010{
011    private final Scoreboard field_96677_a;
012    private final String field_96675_b;
013    private final Set field_96676_c = new HashSet();
014    private String field_96673_d;
015    private String field_96674_e = "";
016    private String field_96671_f = "";
017    private boolean field_96672_g = true;
018    private boolean field_98301_h = true;
019
020    public ScorePlayerTeam(Scoreboard par1Scoreboard, String par2Str)
021    {
022        this.field_96677_a = par1Scoreboard;
023        this.field_96675_b = par2Str;
024        this.field_96673_d = par2Str;
025    }
026
027    public String func_96661_b()
028    {
029        return this.field_96675_b;
030    }
031
032    public String func_96669_c()
033    {
034        return this.field_96673_d;
035    }
036
037    public void func_96664_a(String par1Str)
038    {
039        if (par1Str == null)
040        {
041            throw new IllegalArgumentException("Name cannot be null");
042        }
043        else
044        {
045            this.field_96673_d = par1Str;
046            this.field_96677_a.func_96538_b(this);
047        }
048    }
049
050    public Collection func_96670_d()
051    {
052        return this.field_96676_c;
053    }
054
055    public String func_96668_e()
056    {
057        return this.field_96674_e;
058    }
059
060    public void func_96666_b(String par1Str)
061    {
062        if (par1Str == null)
063        {
064            throw new IllegalArgumentException("Prefix cannot be null");
065        }
066        else
067        {
068            this.field_96674_e = par1Str;
069            this.field_96677_a.func_96538_b(this);
070        }
071    }
072
073    public String func_96663_f()
074    {
075        return this.field_96671_f;
076    }
077
078    public void func_96662_c(String par1Str)
079    {
080        if (par1Str == null)
081        {
082            throw new IllegalArgumentException("Suffix cannot be null");
083        }
084        else
085        {
086            this.field_96671_f = par1Str;
087            this.field_96677_a.func_96538_b(this);
088        }
089    }
090
091    public static String func_96667_a(ScorePlayerTeam par0ScorePlayerTeam, String par1Str)
092    {
093        return par0ScorePlayerTeam == null ? par1Str : par0ScorePlayerTeam.func_96668_e() + par1Str + par0ScorePlayerTeam.func_96663_f();
094    }
095
096    public boolean func_96665_g()
097    {
098        return this.field_96672_g;
099    }
100
101    public void func_96660_a(boolean par1)
102    {
103        this.field_96672_g = par1;
104        this.field_96677_a.func_96538_b(this);
105    }
106
107    public boolean func_98297_h()
108    {
109        return this.field_98301_h;
110    }
111
112    public void func_98300_b(boolean par1)
113    {
114        this.field_98301_h = par1;
115        this.field_96677_a.func_96538_b(this);
116    }
117
118    public int func_98299_i()
119    {
120        int i = 0;
121        int j = 0;
122
123        if (this.func_96665_g())
124        {
125            i |= 1 << j++;
126        }
127
128        if (this.func_98297_h())
129        {
130            i |= 1 << j++;
131        }
132
133        return i;
134    }
135
136    @SideOnly(Side.CLIENT)
137    public void func_98298_a(int par1)
138    {
139        byte b0 = 0;
140        int j = b0 + 1;
141        this.func_96660_a((par1 & 1 << b0) > 0);
142        this.func_98300_b((par1 & 1 << j++) > 0);
143    }
144}