TerraFirmaCraft-The-Final-Frontier / RoughlyEnoughIDs

Fork of JustEnoughIDs. Minecraft 1.13+ chunk format in 1.12.2, removing the block, item, & biome ID limits.
https://www.curseforge.com/minecraft/mc-mods/reid
MIT License
10 stars 11 forks source link

Feat: Use FastUtil to improve chunk saving performance. #67

Closed KasumiNova closed 4 weeks ago

KasumiNova commented 1 month ago

This PR modifies MixinBlockStateContainer and MixinStatList, mainly in MixinBlockStateContainer. The new modification uses FastUtils' Reference2IntMap to store and fetch keys to improve the performance of the Chunk when saving data.

IBlockState is always unique, modifying the structure of this Map should not break functionality.