BKCommonLib icon

BKCommonLib -----

Common utility library adding unique new features and API's



Memory leak bugfix and performance enhancing patches
A rather severe memory leak was uncovered when BKCommonLib was used together with Traincarts. Besides patching this bug, performance was improved in a lot of areas found through profiling the server.

Memory Usage
  • [Fixed] Severe memory leak when spawning and teleporting entities because of glitch in ClassHook thread local cleanup
  • [Fixed] Input streams were not closed when loading map texture resources
  • [Improved] Reduced memory consumption of the YAML API

Performance
  • [Improved] nextTick scheduling made more efficient with less locking
  • [Improved] Server item frame vanilla map refreshing is disabled when a map display is displayed on it
  • [Improved] Reduced overhead converting vectors to Minecraft vector types
  • [Improved] DataWatcher (not bound to entity) set() performance improved
  • [Improved] Entity location and velocity setting and getting overhead reduced
  • [Improved] Entity Move event change detection overhead reduced
  • [Improved] Minor performance boost of WorldUtil getBlockData(world, x, y, z)
  • [Improved] Changes to code generation engine eliminates unneeded casts and boxing overhead
  • [Improved] Reduced number of invoke/invokeVA stack frames

Other
  • [Added] Entity Controller setBlockActivationEnabled option, which newer builds of TrainCarts uses to disable unneeded block collision tests
  • [Fixed] Negative position error in AsyncTextWriter occurred in some environments
  • [Fixed] Errors and server crashes when saving/unloading a world (affected Light Cleaner and MyWorlds delete/unload commands)
  • [Fixed] Writing chunk lighting information was not synchronized right, resulting in rare errors
  • [Fixed] Template error in entity tracker entry, caused errors on some versions of Minecraft
  • [Added] Support for Purpur server fork
  • [Added] Issue on paperspigot was fixed in ProtocolLib, support was added for these changes
  • [Added] Quaternion and Matrix4x4 getYaw/getPitch/getRoll component functions
----------, Mar 13, 2020
Resource Information
Author:
----------
Total Downloads: 206,085
First Release: Apr 17, 2017
Last Update: Apr 27, 2025
Category: ---------------
All-Time Rating:
56 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings