當前位置: 首頁>>代碼示例>>Java>>正文


Java Packet.func_73279_a方法代碼示例

本文整理匯總了Java中net.minecraft.network.packet.Packet.func_73279_a方法的典型用法代碼示例。如果您正苦於以下問題:Java Packet.func_73279_a方法的具體用法?Java Packet.func_73279_a怎麽用?Java Packet.func_73279_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.network.packet.Packet的用法示例。


在下文中一共展示了Packet.func_73279_a方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_74428_b

import net.minecraft.network.packet.Packet; //導入方法依賴的package包/類
public void func_74428_b() {
   int var1 = 2500;

   while(var1-- >= 0 && !this.field_74442_b.isEmpty()) {
      Packet var2 = (Packet)this.field_74442_b.remove(0);
      var2.func_73279_a(this.field_74440_d);
   }

   if(this.field_74442_b.size() > var1) {
      this.field_98214_c.func_98236_b("Memory connection overburdened; after processing 2500 packets, we still have " + this.field_74442_b.size() + " to go!");
   }

   if(this.field_74441_e && this.field_74442_b.isEmpty()) {
      this.field_74440_d.func_72515_a(this.field_74438_f, this.field_74439_g);
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:MemoryConnection.java

示例2: func_74447_i

import net.minecraft.network.packet.Packet; //導入方法依賴的package包/類
private boolean func_74447_i() {
   boolean var1 = false;

   try {
      Packet var2 = Packet.func_73272_a(this.field_98215_i, this.field_74477_k, this.field_74485_r.func_72489_a(), this.field_74479_i);
      if(var2 != null) {
         if(var2 instanceof Packet252SharedKey && !this.field_74465_f) {
            if(this.field_74485_r.func_72489_a()) {
               this.field_74488_z = ((Packet252SharedKey)var2).func_73303_a(this.field_74463_A);
            }

            this.func_74448_j();
         }

         int[] var10000 = field_74470_c;
         int var10001 = var2.func_73281_k();
         var10000[var10001] += var2.func_73284_a() + 1;
         if(!this.field_74484_s) {
            if(var2.func_73277_a_() && this.field_74485_r.func_72469_b()) {
               this.field_74490_x = 0;
               var2.func_73279_a(this.field_74485_r);
            } else {
               this.field_74473_o.add(var2);
            }
         }

         var1 = true;
      } else {
         this.func_74424_a("disconnect.endOfStream", new Object[0]);
      }

      return var1;
   } catch (Exception var3) {
      if(!this.field_74472_n) {
         this.func_74455_a(var3);
      }

      return false;
   }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:41,代碼來源:TcpConnection.java

示例3: func_74428_b

import net.minecraft.network.packet.Packet; //導入方法依賴的package包/類
public void func_74428_b() {
   if(this.field_74489_y > 2097152) {
      this.func_74424_a("disconnect.overflow", new Object[0]);
   }

   if(this.field_74473_o.isEmpty()) {
      if(this.field_74490_x++ == 1200) {
         this.func_74424_a("disconnect.timeout", new Object[0]);
      }
   } else {
      this.field_74490_x = 0;
   }

   int var1 = 1000;

   while(var1-- >= 0) {
      Packet var2 = (Packet)this.field_74473_o.poll();
      if(var2 != null && !this.field_74485_r.func_142032_c()) {
         var2.func_73279_a(this.field_74485_r);
      }
   }

   this.func_74427_a();
   if(this.field_74472_n && this.field_74473_o.isEmpty()) {
      this.field_74485_r.func_72515_a(this.field_74481_v, this.field_74480_w);
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:29,代碼來源:TcpConnection.java

示例4: func_74436_b

import net.minecraft.network.packet.Packet; //導入方法依賴的package包/類
public void func_74436_b(Packet p_74436_1_) {
   if(p_74436_1_.func_73277_a_() && this.field_74440_d.func_72469_b()) {
      p_74436_1_.func_73279_a(this.field_74440_d);
   } else {
      this.field_74442_b.add(p_74436_1_);
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:9,代碼來源:MemoryConnection.java


注:本文中的net.minecraft.network.packet.Packet.func_73279_a方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。