public List func_96550_d(ScoreObjective p_96550_1_) { ArrayList var2 = new ArrayList(); var2.add(new Packet206SetObjective(p_96550_1_, 0)); for(int var3 = 0; var3 < 3; ++var3) { if(this.func_96539_a(var3) == p_96550_1_) { var2.add(new Packet208SetDisplayObjective(var3, p_96550_1_)); } } Iterator var5 = this.func_96534_i(p_96550_1_).iterator(); while(var5.hasNext()) { Score var4 = (Score)var5.next(); var2.add(new Packet207SetScore(var4, 0)); } return var2; }
/** * Handle a set score packet. */ public void handleSetScore(Packet207SetScore par1Packet207SetScore) { Scoreboard scoreboard = this.worldClient.getScoreboard(); ScoreObjective scoreobjective = scoreboard.getObjective(par1Packet207SetScore.scoreName); if (par1Packet207SetScore.updateOrRemove == 0) { Score score = scoreboard.func_96529_a(par1Packet207SetScore.itemName, scoreobjective); score.func_96647_c(par1Packet207SetScore.value); } else if (par1Packet207SetScore.updateOrRemove == 1) { scoreboard.func_96515_c(par1Packet207SetScore.itemName); } }
public List func_96550_d(ScoreObjective par1ScoreObjective) { ArrayList arraylist = new ArrayList(); arraylist.add(new Packet206SetObjective(par1ScoreObjective, 0)); for (int i = 0; i < 3; ++i) { if (this.func_96539_a(i) == par1ScoreObjective) { arraylist.add(new Packet208SetDisplayObjective(i, par1ScoreObjective)); } } Iterator iterator = this.func_96534_i(par1ScoreObjective).iterator(); while (iterator.hasNext()) { Score score = (Score)iterator.next(); arraylist.add(new Packet207SetScore(score, 0)); } return arraylist; }
public void func_96437_a(Packet207SetScore p_96437_1_) { Scoreboard var2 = this.field_72564_i.func_96441_U(); ScoreObjective var3 = var2.func_96518_b(p_96437_1_.field_96486_b); if(p_96437_1_.field_96485_d == 0) { Score var4 = var2.func_96529_a(p_96437_1_.field_96488_a, var3); var4.func_96647_c(p_96437_1_.field_96487_c); } else if(p_96437_1_.field_96485_d == 1) { var2.func_96515_c(p_96437_1_.field_96488_a); } }
public void func_96536_a(Score p_96536_1_) { super.func_96536_a(p_96536_1_); if(this.field_96553_b.contains(p_96536_1_.func_96645_d())) { this.field_96555_a.func_71203_ab().func_72384_a(new Packet207SetScore(p_96536_1_, 0)); } this.func_96551_b(); }
public void func_96536_a(Score par1Score) { super.func_96536_a(par1Score); if (this.field_96553_b.contains(par1Score.func_96645_d())) { this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet207SetScore(par1Score, 0)); } this.func_96551_b(); }
@Override public void handleSetScore(Packet207SetScore par1Packet207SetScore) { nch.handleSetScore(par1Packet207SetScore); }
public void func_96437_a(Packet207SetScore p_96437_1_) { this.func_72509_a(p_96437_1_); }
public void func_96516_a(String p_96516_1_) { super.func_96516_a(p_96516_1_); this.field_96555_a.func_71203_ab().func_72384_a(new Packet207SetScore(p_96516_1_)); this.func_96551_b(); }
public void func_96516_a(String par1Str) { super.func_96516_a(par1Str); this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet207SetScore(par1Str)); this.func_96551_b(); }