Apex Network

Experimental
A high-performance networking overhaul featuring Zstd compression, packet bundling, and delta encoding to drastically reduce bandwidth and latency.

File Details

apexnetwork-1.6.1.jar

  • R
  • Feb 25, 2026
  • 7.36 MB
  • 40
  • 1.21.1
  • NeoForge

File Name

apexnetwork-1.6.1.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:apex-network-1456146:7675262"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Apex Network Optimizer - Update v1.6.1 (The Compatibility Patch)

This patch release focuses on cross-mod compatibility and reliability, fixing critical crashes when running alongside Distant Horizons and other mods that modify the Netty pipeline during disconnect.

🛡️ Distant Horizons Compatibility

  • Fixed Module Conflict: Resolved a fatal ResolutionException crash on startup when Distant Horizons was installed. Both mods bundled the org.tukaani.xz (LZMA2) library, causing Java's module system to reject the duplicate package. ApexNetwork now uses ASM-based bytecode relocation to shade the XZ library into com.apexnetwork.shaded.xz, completely eliminating the conflict.
  • LZMA2 Works Everywhere: Unlike a simple fallback, the relocated XZ library is fully embedded inside the ApexNetwork jar. LZMA2 and Hybrid compression work on every server and client, with or without Distant Horizons installed.

🔧 Pipeline Disconnect Crash Fix

  • Fixed NoSuchElementException on Disconnect: Fixed a race condition crash (NoSuchElementException: apex_zstd_decoder) that occurred when disconnecting from a server while other mods (like Distant Horizons) were simultaneously tearing down the Netty pipeline.
  • Channel Guard: The ApexPipelineInjector.remove() method now checks channel.isOpen() before attempting handler removal, and the safeRemove() catch block has been broadened from NoSuchElementException to Exception to handle any unexpected pipeline state during concurrent disconnect races.

📊 Built-In Benchmark Command

  • New /apex benchmark Command: Run real-time compression benchmarks directly in-game. Captures live network traffic, compresses it against every algorithm and level, and reports speeds and ratios with live progress updates.
  • Dictionary Bug Fix: Fixed a bug where cached Zstd dictionary contexts produced inaccurate benchmark results. Fresh contexts are now created per profile for accurate measurements.
  • Increased Dictionary Size: Default dictionary training size increased from 8KB to 112KB for better capture of Minecraft NBT data patterns.

📈 What to Expect

  • No More Crashes with DH: ApexNetwork now coexists peacefully with Distant Horizons, Sodium, ModernFix, and the full NeoForge ecosystem.
  • Clean Disconnects: Leaving a server no longer risks a crash report, even with heavily modded clients.
  • Verify Performance: Use /apex benchmark to see exactly how much bandwidth Apex is saving on your server.