コード例 #1
0
 // MapChunkThread sends packets to the method. All packets should pass through this method before
 // being sent to the client
 public void queueOutputPacket(Packet packet) {
   packet = updateActiveChunks(packet);
   if (packet == null) {
     return;
   }
   resyncQueue.addLast(packet);
   if (processingKick.get()) {
     this.syncFlushPacketQueue(new MCCraftPacket[256]);
   }
 }
コード例 #2
0
 public void queueAction(int timeIndex, DrawingAction action) {
   queue.addLast(new QueueItem(timeIndex, action));
 }