当前位置: 首页>>代码示例>>Java>>正文


Java ServerScoreboard.func_96550_d方法代码示例

本文整理汇总了Java中net.minecraft.scoreboard.ServerScoreboard.func_96550_d方法的典型用法代码示例。如果您正苦于以下问题:Java ServerScoreboard.func_96550_d方法的具体用法?Java ServerScoreboard.func_96550_d怎么用?Java ServerScoreboard.func_96550_d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.scoreboard.ServerScoreboard的用法示例。


在下文中一共展示了ServerScoreboard.func_96550_d方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: sendScoreboard

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
protected void sendScoreboard(ServerScoreboard scoreboardIn, EntityPlayerMP playerIn)
{
    Set<ScoreObjective> set = Sets.<ScoreObjective>newHashSet();

    for (ScorePlayerTeam scoreplayerteam : scoreboardIn.getTeams())
    {
        playerIn.playerNetServerHandler.sendPacket(new S3EPacketTeams(scoreplayerteam, 0));
    }

    for (int i = 0; i < 19; ++i)
    {
        ScoreObjective scoreobjective = scoreboardIn.getObjectiveInDisplaySlot(i);

        if (scoreobjective != null && !set.contains(scoreobjective))
        {
            for (Packet packet : scoreboardIn.func_96550_d(scoreobjective))
            {
                playerIn.playerNetServerHandler.sendPacket(packet);
            }

            set.add(scoreobjective);
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:25,代码来源:ServerConfigurationManager.java

示例2: func_96456_a

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
protected void func_96456_a(ServerScoreboard p_96456_1_, EntityPlayerMP p_96456_2_) {
   HashSet var3 = new HashSet();
   Iterator var4 = p_96456_1_.func_96525_g().iterator();

   while(var4.hasNext()) {
      ScorePlayerTeam var5 = (ScorePlayerTeam)var4.next();
      p_96456_2_.field_71135_a.func_72567_b(new Packet209SetPlayerTeam(var5, 0));
   }

   for(int var9 = 0; var9 < 3; ++var9) {
      ScoreObjective var10 = p_96456_1_.func_96539_a(var9);
      if(var10 != null && !var3.contains(var10)) {
         List var6 = p_96456_1_.func_96550_d(var10);
         Iterator var7 = var6.iterator();

         while(var7.hasNext()) {
            Packet var8 = (Packet)var7.next();
            p_96456_2_.field_71135_a.func_72567_b(var8);
         }

         var3.add(var10);
      }
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:26,代码来源:ServerConfigurationManager.java

示例3: func_96456_a

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
protected void func_96456_a(ServerScoreboard par1ServerScoreboard, EntityPlayerMP par2EntityPlayerMP)
{
    HashSet var3 = new HashSet();
    Iterator var4 = par1ServerScoreboard.getTeams().iterator();

    while (var4.hasNext())
    {
        ScorePlayerTeam var5 = (ScorePlayerTeam)var4.next();
        par2EntityPlayerMP.playerNetServerHandler.sendPacket(new S3EPacketTeams(var5, 0));
    }

    for (int var9 = 0; var9 < 3; ++var9)
    {
        ScoreObjective var10 = par1ServerScoreboard.func_96539_a(var9);

        if (var10 != null && !var3.contains(var10))
        {
            List var6 = par1ServerScoreboard.func_96550_d(var10);
            Iterator var7 = var6.iterator();

            while (var7.hasNext())
            {
                Packet var8 = (Packet)var7.next();
                par2EntityPlayerMP.playerNetServerHandler.sendPacket(var8);
            }

            var3.add(var10);
        }
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:31,代码来源:ServerConfigurationManager.java

示例4: func_96456_a

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
public void func_96456_a(ServerScoreboard p_96456_1_, EntityPlayerMP p_96456_2_) // CraftBukkit - protected -> public
{
    HashSet hashset = new HashSet();
    Iterator iterator = p_96456_1_.getTeams().iterator();

    while (iterator.hasNext())
    {
        ScorePlayerTeam scoreplayerteam = (ScorePlayerTeam)iterator.next();
        p_96456_2_.playerNetServerHandler.sendPacket(new S3EPacketTeams(scoreplayerteam, 0));
    }

    for (int i = 0; i < 3; ++i)
    {
        ScoreObjective scoreobjective = p_96456_1_.func_96539_a(i);

        if (scoreobjective != null && !hashset.contains(scoreobjective))
        {
            List list = p_96456_1_.func_96550_d(scoreobjective);
            Iterator iterator1 = list.iterator();

            while (iterator1.hasNext())
            {
                Packet packet = (Packet)iterator1.next();
                p_96456_2_.playerNetServerHandler.sendPacket(packet);
            }

            hashset.add(scoreobjective);
        }
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:31,代码来源:ServerConfigurationManager.java

示例5: func_96456_a

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
protected void func_96456_a(ServerScoreboard p_96456_1_, EntityPlayerMP p_96456_2_)
{
    HashSet hashset = new HashSet();
    Iterator iterator = p_96456_1_.getTeams().iterator();

    while (iterator.hasNext())
    {
        ScorePlayerTeam scoreplayerteam = (ScorePlayerTeam)iterator.next();
        p_96456_2_.playerNetServerHandler.sendPacket(new S3EPacketTeams(scoreplayerteam, 0));
    }

    for (int i = 0; i < 3; ++i)
    {
        ScoreObjective scoreobjective = p_96456_1_.func_96539_a(i);

        if (scoreobjective != null && !hashset.contains(scoreobjective))
        {
            List list = p_96456_1_.func_96550_d(scoreobjective);
            Iterator iterator1 = list.iterator();

            while (iterator1.hasNext())
            {
                Packet packet = (Packet)iterator1.next();
                p_96456_2_.playerNetServerHandler.sendPacket(packet);
            }

            hashset.add(scoreobjective);
        }
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:31,代码来源:ServerConfigurationManager.java

示例6: func_96456_a

import net.minecraft.scoreboard.ServerScoreboard; //导入方法依赖的package包/类
protected void func_96456_a(ServerScoreboard par1ServerScoreboard, EntityPlayerMP par2EntityPlayerMP)
{
    HashSet hashset = new HashSet();
    Iterator iterator = par1ServerScoreboard.func_96525_g().iterator();

    while (iterator.hasNext())
    {
        ScorePlayerTeam scoreplayerteam = (ScorePlayerTeam)iterator.next();
        par2EntityPlayerMP.playerNetServerHandler.sendPacketToPlayer(new Packet209SetPlayerTeam(scoreplayerteam, 0));
    }

    for (int i = 0; i < 3; ++i)
    {
        ScoreObjective scoreobjective = par1ServerScoreboard.func_96539_a(i);

        if (scoreobjective != null && !hashset.contains(scoreobjective))
        {
            List list = par1ServerScoreboard.func_96550_d(scoreobjective);
            Iterator iterator1 = list.iterator();

            while (iterator1.hasNext())
            {
                Packet packet = (Packet)iterator1.next();
                par2EntityPlayerMP.playerNetServerHandler.sendPacketToPlayer(packet);
            }

            hashset.add(scoreobjective);
        }
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:31,代码来源:ServerConfigurationManager.java


注:本文中的net.minecraft.scoreboard.ServerScoreboard.func_96550_d方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。