HomeJavaModsFast NBT
Fast NBT
ModsJava

Fast NBT

by nutant233 · on CurseForge

Speed up all kinds of NBT operations and improve game performance. Free Minecraft Java mod for 1.20.1.

⬇ Download on CurseForge
This mod optimizes various methods in the CompoundTag class:
  1. For all kinds of get methods: In the vanilla game, it first calls the contains method to check if the key exists, then invokes the get method. This results in two map lookups. This mod merges these two operations into one and applies inlining, which greatly improves the lookup speed.
  2. It optimizes the iteration logic of the class: It replaces the pattern of iterating with keySet paired with get with an approach that iterates keys and values simultaneously, thus avoiding a large number of lookups during iteration.
  3. It optimizes operations involving get methods in other related classes.

Fast NBT is a free Minecraft Java mod. Compatible with Minecraft 1.20.1. Downloaded 691,688 times (via CurseForge). Download it and open it directly in the game.

Explore more