Closed ShirleyNekoDev closed 6 months ago
Gzip is unused by Minecraft but technically an allowed value of the file format.
LZ4 Java looks like the smaller dependency to me that doesn't come with things we don't need.
gzip is used in cubic chunks region files
Snapshot 24w04a added LZ4 as new region-file-compression.
The article states that there are 2 possible values: deflate (zlib) and lz4 - we also support gzip, probably from older versions (not sure)?
Relevant code:
This feature requires an additional dependency, because Java JDK does not ship LZ4 decoders. Probably one of those: LZ4 Java or Kanzi.