public void func_96436_a(Packet206SetObjective p_96436_1_) { Scoreboard var2 = this.field_72564_i.func_96441_U(); ScoreObjective var3; if(p_96436_1_.field_96483_c == 0) { var3 = var2.func_96535_a(p_96436_1_.field_96484_a, ScoreObjectiveCriteria.field_96641_b); var3.func_96681_a(p_96436_1_.field_96482_b); } else { var3 = var2.func_96518_b(p_96436_1_.field_96484_a); if(p_96436_1_.field_96483_c == 1) { var2.func_96519_k(var3); } else if(p_96436_1_.field_96483_c == 2) { var3.func_96681_a(p_96436_1_.field_96482_b); } } }
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 objective packet. */ public void handleSetObjective(Packet206SetObjective par1Packet206SetObjective) { Scoreboard scoreboard = this.worldClient.getScoreboard(); ScoreObjective scoreobjective; if (par1Packet206SetObjective.change == 0) { scoreobjective = scoreboard.func_96535_a(par1Packet206SetObjective.objectiveName, ScoreObjectiveCriteria.field_96641_b); scoreobjective.setDisplayName(par1Packet206SetObjective.objectiveDisplayName); } else { scoreobjective = scoreboard.getObjective(par1Packet206SetObjective.objectiveName); if (par1Packet206SetObjective.change == 1) { scoreboard.func_96519_k(scoreobjective); } else if (par1Packet206SetObjective.change == 2) { scoreobjective.setDisplayName(par1Packet206SetObjective.objectiveDisplayName); } } }
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_96532_b(ScoreObjective p_96532_1_) { super.func_96532_b(p_96532_1_); if(this.field_96553_b.contains(p_96532_1_)) { this.field_96555_a.func_71203_ab().func_72384_a(new Packet206SetObjective(p_96532_1_, 2)); } this.func_96551_b(); }
public List func_96548_f(ScoreObjective p_96548_1_) { ArrayList var2 = new ArrayList(); var2.add(new Packet206SetObjective(p_96548_1_, 1)); for(int var3 = 0; var3 < 3; ++var3) { if(this.func_96539_a(var3) == p_96548_1_) { var2.add(new Packet208SetDisplayObjective(var3, p_96548_1_)); } } return var2; }
public void func_96532_b(ScoreObjective par1ScoreObjective) { super.func_96532_b(par1ScoreObjective); if (this.field_96553_b.contains(par1ScoreObjective)) { this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet206SetObjective(par1ScoreObjective, 2)); } this.func_96551_b(); }
public List func_96548_f(ScoreObjective par1ScoreObjective) { ArrayList arraylist = new ArrayList(); arraylist.add(new Packet206SetObjective(par1ScoreObjective, 1)); for (int i = 0; i < 3; ++i) { if (this.func_96539_a(i) == par1ScoreObjective) { arraylist.add(new Packet208SetDisplayObjective(i, par1ScoreObjective)); } } return arraylist; }
@Override public void handleSetObjective(Packet206SetObjective par1Packet206SetObjective) { nch.handleSetObjective(par1Packet206SetObjective); }
public void func_96436_a(Packet206SetObjective p_96436_1_) { this.func_72509_a(p_96436_1_); }