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


Java Packet209SetPlayerTeam类代码示例

本文整理汇总了Java中net.minecraft.network.packet.Packet209SetPlayerTeam的典型用法代码示例。如果您正苦于以下问题:Java Packet209SetPlayerTeam类的具体用法?Java Packet209SetPlayerTeam怎么用?Java Packet209SetPlayerTeam使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: func_96456_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的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

示例2: func_96456_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的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

示例3: removePlayerFromTeam

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
/**
 * Removes the given username from the given ScorePlayerTeam. If the player is not on the team then an
 * IllegalStateException is thrown.
 */
public void removePlayerFromTeam(String par1Str, ScorePlayerTeam par2ScorePlayerTeam)
{
    super.removePlayerFromTeam(par1Str, par2ScorePlayerTeam);
    this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet209SetPlayerTeam(par2ScorePlayerTeam, Arrays.asList(new String[] {par1Str}), 4));
    this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:11,代码来源:ServerScoreboard.java

示例4: handleSetPlayerTeam

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
@Override
public void handleSetPlayerTeam(Packet209SetPlayerTeam par1Packet209SetPlayerTeam)
{
	nch.handleSetPlayerTeam(par1Packet209SetPlayerTeam);		
}
 
开发者ID:xurei,项目名称:forge_world_downloader,代码行数:6,代码来源:WDLNetClientHandler.java

示例5: func_96435_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96435_a(Packet209SetPlayerTeam p_96435_1_) {
   this.func_72509_a(p_96435_1_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:NetHandler.java

示例6: func_96435_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96435_a(Packet209SetPlayerTeam p_96435_1_) {
   Scoreboard var2 = this.field_72564_i.func_96441_U();
   ScorePlayerTeam var3;
   if(p_96435_1_.field_96489_f == 0) {
      var3 = var2.func_96527_f(p_96435_1_.field_96495_a);
   } else {
      var3 = var2.func_96508_e(p_96435_1_.field_96495_a);
   }

   if(p_96435_1_.field_96489_f == 0 || p_96435_1_.field_96489_f == 2) {
      var3.func_96664_a(p_96435_1_.field_96493_b);
      var3.func_96666_b(p_96435_1_.field_96494_c);
      var3.func_96662_c(p_96435_1_.field_96491_d);
      var3.func_98298_a(p_96435_1_.field_98212_g);
   }

   Iterator var4;
   String var5;
   if(p_96435_1_.field_96489_f == 0 || p_96435_1_.field_96489_f == 3) {
      var4 = p_96435_1_.field_96492_e.iterator();

      while(var4.hasNext()) {
         var5 = (String)var4.next();
         var2.func_96521_a(var5, var3);
      }
   }

   if(p_96435_1_.field_96489_f == 4) {
      var4 = p_96435_1_.field_96492_e.iterator();

      while(var4.hasNext()) {
         var5 = (String)var4.next();
         var2.func_96512_b(var5, var3);
      }
   }

   if(p_96435_1_.field_96489_f == 1) {
      var2.func_96511_d(var3);
   }

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

示例7: func_96521_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96521_a(String p_96521_1_, ScorePlayerTeam p_96521_2_) {
   super.func_96521_a(p_96521_1_, p_96521_2_);
   this.field_96555_a.func_71203_ab().func_72384_a(new Packet209SetPlayerTeam(p_96521_2_, Arrays.asList(new String[]{p_96521_1_}), 3));
   this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ServerScoreboard.java

示例8: func_96512_b

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96512_b(String p_96512_1_, ScorePlayerTeam p_96512_2_) {
   super.func_96512_b(p_96512_1_, p_96512_2_);
   this.field_96555_a.func_71203_ab().func_72384_a(new Packet209SetPlayerTeam(p_96512_2_, Arrays.asList(new String[]{p_96512_1_}), 4));
   this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ServerScoreboard.java

示例9: func_96523_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96523_a(ScorePlayerTeam p_96523_1_) {
   super.func_96523_a(p_96523_1_);
   this.field_96555_a.func_71203_ab().func_72384_a(new Packet209SetPlayerTeam(p_96523_1_, 0));
   this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ServerScoreboard.java

示例10: func_96538_b

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96538_b(ScorePlayerTeam p_96538_1_) {
   super.func_96538_b(p_96538_1_);
   this.field_96555_a.func_71203_ab().func_72384_a(new Packet209SetPlayerTeam(p_96538_1_, 2));
   this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ServerScoreboard.java

示例11: func_96513_c

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96513_c(ScorePlayerTeam p_96513_1_) {
   super.func_96513_c(p_96513_1_);
   this.field_96555_a.func_71203_ab().func_72384_a(new Packet209SetPlayerTeam(p_96513_1_, 1));
   this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ServerScoreboard.java

示例12: handleSetPlayerTeam

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
/**
 * Handle a set player team packet.
 */
public void handleSetPlayerTeam(Packet209SetPlayerTeam par1Packet209SetPlayerTeam)
{
    Scoreboard scoreboard = this.worldClient.getScoreboard();
    ScorePlayerTeam scoreplayerteam;

    if (par1Packet209SetPlayerTeam.mode == 0)
    {
        scoreplayerteam = scoreboard.createTeam(par1Packet209SetPlayerTeam.teamName);
    }
    else
    {
        scoreplayerteam = scoreboard.func_96508_e(par1Packet209SetPlayerTeam.teamName);
    }

    if (par1Packet209SetPlayerTeam.mode == 0 || par1Packet209SetPlayerTeam.mode == 2)
    {
        scoreplayerteam.setTeamName(par1Packet209SetPlayerTeam.teamDisplayName);
        scoreplayerteam.setNamePrefix(par1Packet209SetPlayerTeam.teamPrefix);
        scoreplayerteam.setNameSuffix(par1Packet209SetPlayerTeam.teamSuffix);
        scoreplayerteam.func_98298_a(par1Packet209SetPlayerTeam.friendlyFire);
    }

    Iterator iterator;
    String s;

    if (par1Packet209SetPlayerTeam.mode == 0 || par1Packet209SetPlayerTeam.mode == 3)
    {
        iterator = par1Packet209SetPlayerTeam.playerNames.iterator();

        while (iterator.hasNext())
        {
            s = (String)iterator.next();
            scoreboard.addPlayerToTeam(s, scoreplayerteam);
        }
    }

    if (par1Packet209SetPlayerTeam.mode == 4)
    {
        iterator = par1Packet209SetPlayerTeam.playerNames.iterator();

        while (iterator.hasNext())
        {
            s = (String)iterator.next();
            scoreboard.removePlayerFromTeam(s, scoreplayerteam);
        }
    }

    if (par1Packet209SetPlayerTeam.mode == 1)
    {
        scoreboard.func_96511_d(scoreplayerteam);
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:56,代码来源:NetClientHandler.java

示例13: addPlayerToTeam

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void addPlayerToTeam(String par1Str, ScorePlayerTeam par2ScorePlayerTeam)
{
    super.addPlayerToTeam(par1Str, par2ScorePlayerTeam);
    this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet209SetPlayerTeam(par2ScorePlayerTeam, Arrays.asList(new String[] {par1Str}), 3));
    this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:ServerScoreboard.java

示例14: func_96523_a

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96523_a(ScorePlayerTeam par1ScorePlayerTeam)
{
    super.func_96523_a(par1ScorePlayerTeam);
    this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet209SetPlayerTeam(par1ScorePlayerTeam, 0));
    this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:ServerScoreboard.java

示例15: func_96538_b

import net.minecraft.network.packet.Packet209SetPlayerTeam; //导入依赖的package包/类
public void func_96538_b(ScorePlayerTeam par1ScorePlayerTeam)
{
    super.func_96538_b(par1ScorePlayerTeam);
    this.field_96555_a.getConfigurationManager().sendPacketToAllPlayers(new Packet209SetPlayerTeam(par1ScorePlayerTeam, 2));
    this.func_96551_b();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:ServerScoreboard.java


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