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

项目:RuneCraftery    文件:NetServerHandler.java   
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
{
    StringBuilder stringbuilder = new StringBuilder();
    String s;

    for (Iterator iterator = this.mcServer.getPossibleCompletions(this.playerEntity, par1Packet203AutoComplete.getText()).iterator(); iterator.hasNext(); stringbuilder.append(s))
    {
        s = (String)iterator.next();

        if (stringbuilder.length() > 0)
        {
            stringbuilder.append("\u0000");
        }
    }

    this.playerEntity.playerNetServerHandler.sendPacketToPlayer(new Packet203AutoComplete(stringbuilder.toString()));
}
项目:BetterNutritionMod    文件:NetServerHandler.java   
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
{
    StringBuilder stringbuilder = new StringBuilder();
    String s;

    for (Iterator iterator = this.mcServer.getPossibleCompletions(this.playerEntity, par1Packet203AutoComplete.getText()).iterator(); iterator.hasNext(); stringbuilder.append(s))
    {
        s = (String)iterator.next();

        if (stringbuilder.length() > 0)
        {
            stringbuilder.append("\u0000");
        }
    }

    this.playerEntity.playerNetServerHandler.sendPacketToPlayer(new Packet203AutoComplete(stringbuilder.toString()));
}
项目:RuneCraftery    文件:NetServerHandler.java   
public void func_72461_a(Packet203AutoComplete p_72461_1_) {
   StringBuilder var2 = new StringBuilder();

   String var4;
   for(Iterator var3 = this.field_72573_d.func_71248_a(this.field_72574_e, p_72461_1_.func_73473_d()).iterator(); var3.hasNext(); var2.append(var4)) {
      var4 = (String)var3.next();
      if(var2.length() > 0) {
         var2.append("\u0000");
      }
   }

   this.field_72574_e.field_71135_a.func_72567_b(new Packet203AutoComplete(var2.toString()));
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72461_a(Packet203AutoComplete p_72461_1_) {
   String[] var2 = p_72461_1_.func_73473_d().split("\u0000");
   if(this.field_72563_h.field_71462_r instanceof GuiChat) {
      GuiChat var3 = (GuiChat)this.field_72563_h.field_71462_r;
      var3.func_73894_a(var2);
   }

}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
{
    String[] astring = par1Packet203AutoComplete.getText().split("\u0000");

    if (this.mc.currentScreen instanceof GuiChat)
    {
        GuiChat guichat = (GuiChat)this.mc.currentScreen;
        guichat.func_73894_a(astring);
    }
}
项目:RuneCraftery    文件:GuiChat.java   
private void func_73893_a(String par1Str, String par2Str)
{
    if (par1Str.length() >= 1)
    {
        ClientCommandHandler.instance.autoComplete(par1Str, par2Str);
        this.mc.thePlayer.sendQueue.addToSendQueue(new Packet203AutoComplete(par1Str));
        this.field_73905_m = true;
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
{
    String[] astring = par1Packet203AutoComplete.getText().split("\u0000");

    if (this.mc.currentScreen instanceof GuiChat)
    {
        GuiChat guichat = (GuiChat)this.mc.currentScreen;
        guichat.func_73894_a(astring);
    }
}
项目:BetterNutritionMod    文件:GuiChat.java   
private void func_73893_a(String par1Str, String par2Str)
{
    if (par1Str.length() >= 1)
    {
        ClientCommandHandler.instance.autoComplete(par1Str, par2Str);
        this.mc.thePlayer.sendQueue.addToSendQueue(new Packet203AutoComplete(par1Str));
        this.field_73905_m = true;
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
{
    nch.handleAutoComplete(par1Packet203AutoComplete);      
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72461_a(Packet203AutoComplete p_72461_1_) {
   this.func_72509_a(p_72461_1_);
}
项目:RuneCraftery    文件:GuiChat.java   
private void func_73893_a(String p_73893_1_, String p_73893_2_) {
   if(p_73893_1_.length() >= 1) {
      this.field_73882_e.field_71439_g.field_71174_a.func_72552_c(new Packet203AutoComplete(p_73893_1_));
      this.field_73905_m = true;
   }
}