            :compresseddata
            (-read-bytearray conn
                             (:compressedsize predata)))))
+
+(defn read-packet-multiblockchange [conn]
+  (-> {}
+    (assoc :chunkx (-read-int conn))
+    (assoc :chunkz (-read-int conn))
+    (assoc :arraysize (-read-short conn))
+    (assoc :coordinatearray (-read-shortarray conn))
+    (assoc :typearray (-read-bytearray conn))
+    (assoc :metadataarray (-read-bytearray conn))))
 
 
 ; Reading Wrappers -----------------------------------------------------------------

  0x28 :entitymetadata
  0x32 :prechunk
  0x33 :mapchunk
})
(def packet-ids (apply assoc {} (mapcat reverse packet-types)))



  (-write-int conn eid)
  (-write-metadata conn metadata))

(defn write-packet-multiblockchange [conn {chunkx :chunkx chunkz :chunkz arraysize :arraysize coordinatearray :coordinatearray typearray :typearray metadataarray :metadataarray}]
  (-write-byte conn (:multiblockchange packet-ids))

  (-write-int conn chunkx)
  (-write-int conn chunkz)
  (-write-short conn arraysize)
  (-write-shortarray conn coordinatearray)
  (-write-bytearray conn typearray)
  (-write-bytearray conn metadataarray))


; Writing Wrappers -----------------------------------------------------------------
