// 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]);
   }
 }
 public void queueAction(int timeIndex, DrawingAction action) {
   queue.addLast(new QueueItem(timeIndex, action));
 }