    001package net.minecraft.scoreboard;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005
    006public class ScoreObjective
    007{
    008    private final Scoreboard theScoreboard;
    009    private final String name;
    010
    011    /** The ScoreObjectiveCriteria for this objetive */
    012    private final ScoreObjectiveCriteria objectiveCriteria;
    013    private String displayName;
    014
    015    public ScoreObjective(Scoreboard par1Scoreboard, String par2Str, ScoreObjectiveCriteria par3ScoreObjectiveCriteria)
    016    {
    017        this.theScoreboard = par1Scoreboard;
    018        this.name = par2Str;
    019        this.objectiveCriteria = par3ScoreObjectiveCriteria;
    020        this.displayName = par2Str;
    021    }
    022
    023    @SideOnly(Side.CLIENT)
    024    public Scoreboard getScoreboard()
    025    {
    026        return this.theScoreboard;
    027    }
    028
    029    public String getName()
    030    {
    031        return this.name;
    032    }
    033
    034    public ScoreObjectiveCriteria getCriteria()
    035    {
    036        return this.objectiveCriteria;
    037    }
    038
    039    public String getDisplayName()
    040    {
    041        return this.displayName;
    042    }
    043
    044    public void setDisplayName(String par1Str)
    045    {
    046        this.displayName = par1Str;
    047        this.theScoreboard.func_96532_b(this);
    048    }
    049}