Releases: boxbeam/RedLib
Releases · boxbeam/RedLib
Improvements to MultiBlockStructure and ProtectionPolicy
- You can now specify a block type to skip when scanning a structure, in case that type was used to select the corners
- You can now register custom events to be protected by a ProtectionPolicy using ProtectionPolicy#registerProtection and ProtectionPolicy#registerProtectionNonCancellable
Breaking changes to ConfigManager, changes to make dependencies more reload-safe, optimizations
- ConfigMap#postInit has been removed, as it was causing issues. Create a method called postInit with no arguments.
- ProtectionPolicies will now unregister themselves if the plugin which created them is disabled
- Region#getChunks and Region#getEntities have been optimized because World#getChunkAt is evidently an expensive operation. Chunks are now cached by Regions after one call, and Region#getEntities no longer loads chunks to check for entities unless specified to.
Minor improvements and bugfixes
- Structure#getRegion now returns the correct region regardless of rotation
- LocationUtils#getNearestSafeLocation is now more accurate
Various fixes and improvements
- CustomBlockRegistry no longer throws an exception when breaking a custom block
- Commands registered through CommandManager will now be unregistered when the plugin that registered them is disabled
- InventoryGUI now cancels InventoryDragEvents which are in non-open slots in the GUI
- ItemUtils now has a utility method to clone an inventory (cannot be opened, but supports other operations)
Refactored WeightedRandom to work with decimal weights
Backwards compatibility was mostly preserved, but is deprecated and may be removed in the future.
Reworked internals of Hologram utility, it is now much more reliable
3.1.2 Reworked internal parts of the Hologram utility, it is now much more …
Various tweaks and minor improvements, progress on custom world generation
3.1.1 Various tweaks to the API, progress on custom world generation
Major improvements to various parts of the API, introduced a WIP world generation API
3.1 Minor bugfix with custom block registry
Minor bugfixes
BlockDataManager will no longer throw NPEs when attempting to load blocks from worlds that have not yet been loaded
NMSHelper will now find methods more smartly
Added NMS helper and packet listener
You can now easily work with NMS classes and objects using RedLib
There is also now a built-in packet listener that allows you to easily listen to incoming and outgoing packets