Java 类net.minecraft.network.packet.Packet208SetDisplayObjective 实例源码

项目:RuneCraftery    文件:ServerScoreboard.java   
public void func_96530_a(int p_96530_1_, ScoreObjective p_96530_2_) {
   ScoreObjective var3 = this.func_96539_a(p_96530_1_);
   super.func_96530_a(p_96530_1_, p_96530_2_);
   if(var3 != p_96530_2_ && var3 != null) {
      if(this.func_96552_h(var3) > 0) {
         this.field_96555_a.func_71203_ab().func_72384_a(new Packet208SetDisplayObjective(p_96530_1_, p_96530_2_));
      } else {
         this.func_96546_g(var3);
      }
   }

   if(p_96530_2_ != null) {
      if(this.field_96553_b.contains(p_96530_2_)) {
         this.field_96555_a.func_71203_ab().func_72384_a(new Packet208SetDisplayObjective(p_96530_1_, p_96530_2_));
      } else {
         this.func_96549_e(p_96530_2_);
      }
   }

   this.func_96551_b();
}
项目:RuneCraftery    文件:ServerScoreboard.java   
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;
}
项目:RuneCraftery    文件:ServerScoreboard.java   
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;
}
项目:BetterNutritionMod    文件:ServerScoreboard.java   
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;
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_96438_a(Packet208SetDisplayObjective p_96438_1_) {
   Scoreboard var2 = this.field_72564_i.func_96441_U();
   if(p_96438_1_.field_96480_b.length() == 0) {
      var2.func_96530_a(p_96438_1_.field_96481_a, (ScoreObjective)null);
   } else {
      ScoreObjective var3 = var2.func_96518_b(p_96438_1_.field_96480_b);
      var2.func_96530_a(p_96438_1_.field_96481_a, var3);
   }

}
项目:RuneCraftery    文件:ServerScoreboard.java   
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;
}
项目:RuneCraftery    文件:NetClientHandler.java   
/**
 * Handle a set display objective packet.
 */
public void handleSetDisplayObjective(Packet208SetDisplayObjective par1Packet208SetDisplayObjective)
{
    Scoreboard scoreboard = this.worldClient.getScoreboard();

    if (par1Packet208SetDisplayObjective.scoreName.length() == 0)
    {
        scoreboard.func_96530_a(par1Packet208SetDisplayObjective.scoreboardPosition, (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(par1Packet208SetDisplayObjective.scoreName);
        scoreboard.func_96530_a(par1Packet208SetDisplayObjective.scoreboardPosition, scoreobjective);
    }
}
项目:RuneCraftery    文件:ServerScoreboard.java   
public void func_96530_a(int par1, ScoreObjective par2ScoreObjective)
{
    ScoreObjective scoreobjective1 = this.func_96539_a(par1);
    super.func_96530_a(par1, par2ScoreObjective);

    if (scoreobjective1 != par2ScoreObjective && scoreobjective1 != null)
    {
        if (this.func_96552_h(scoreobjective1) > 0)
        {
            this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet208SetDisplayObjective(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96546_g(scoreobjective1);
        }
    }

    if (par2ScoreObjective != null)
    {
        if (this.field_96553_b.contains(par2ScoreObjective))
        {
            this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet208SetDisplayObjective(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96549_e(par2ScoreObjective);
        }
    }

    this.func_96551_b();
}
项目:RuneCraftery    文件:ServerScoreboard.java   
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;
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
/**
 * Handle a set display objective packet.
 */
public void handleSetDisplayObjective(Packet208SetDisplayObjective par1Packet208SetDisplayObjective)
{
    Scoreboard scoreboard = this.worldClient.getScoreboard();

    if (par1Packet208SetDisplayObjective.scoreName.length() == 0)
    {
        scoreboard.func_96530_a(par1Packet208SetDisplayObjective.scoreboardPosition, (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(par1Packet208SetDisplayObjective.scoreName);
        scoreboard.func_96530_a(par1Packet208SetDisplayObjective.scoreboardPosition, scoreobjective);
    }
}
项目:BetterNutritionMod    文件:ServerScoreboard.java   
public void func_96530_a(int par1, ScoreObjective par2ScoreObjective)
{
    ScoreObjective scoreobjective1 = this.func_96539_a(par1);
    super.func_96530_a(par1, par2ScoreObjective);

    if (scoreobjective1 != par2ScoreObjective && scoreobjective1 != null)
    {
        if (this.func_96552_h(scoreobjective1) > 0)
        {
            this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet208SetDisplayObjective(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96546_g(scoreobjective1);
        }
    }

    if (par2ScoreObjective != null)
    {
        if (this.field_96553_b.contains(par2ScoreObjective))
        {
            this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet208SetDisplayObjective(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96549_e(par2ScoreObjective);
        }
    }

    this.func_96551_b();
}
项目:BetterNutritionMod    文件:ServerScoreboard.java   
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;
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleSetDisplayObjective(Packet208SetDisplayObjective par1Packet208SetDisplayObjective)
{
    nch.handleSetDisplayObjective(par1Packet208SetDisplayObjective);        
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_96438_a(Packet208SetDisplayObjective p_96438_1_) {
   this.func_72509_a(p_96438_1_);
}