Skip to content

Releases: boxbeam/RedLib

Fixes and additions for PaginationPanel

01 Nov 19:19
Compare
Choose a tag to compare
  • Fixed issue where PaginationPanel would never display the final element that was added
  • Fixed issue where PaginationPanel#getMaxPage would divide by zero when no slots were added
  • Added PaginationPanel#clear to remove all added elements
  • Added methods to get all added ItemStacks and ItemButtons

Base commands are no longer tab-completable without permission

01 Nov 04:53
Compare
Choose a tag to compare
  • Users used to be able to tab-complete the names of base commands they didn't have permission for, this is no longer possible
  • Added PaginationPanel#setPage, since you may sometimes need to skip to a specific page rather than moving one page at a time

InventoryGUI pagination and ConfigCollection

31 Oct 21:53
Compare
Choose a tag to compare
  • InventoryGUI can now be paginated using the PaginationPanel utility class
  • ConfigManager#collection can now be used to wrap any collection type for saving and loading to config

Remove minecraft namespace prefixes from serialized MultiBlockStructures

06 Oct 05:40
Compare
Choose a tag to compare
  • minecraft: will no longer be included in front of block names (1.13+)

Fix issue causing structure scanning to not work in some cases

06 Oct 02:36
Compare
Choose a tag to compare
  • Rewrote structure scanning method entirely
  • Issue happened in 1.12, still not sure what cause was
  • Structure scanning is now faster and less memory-intensive

Fix bug related to kotlin plugins

04 Oct 23:33
Compare
Choose a tag to compare
  • Skip classes which throw NoClassDefFoundError when finding subclasses at runtime

Fix bug with WeightedRandom

09 Sep 13:42
0111b06
Compare
Choose a tag to compare
  • WeightedRandom will no longer have biased RNG after removing an outcome (thanks for the PR, divios)

Fix bug with RedCommands, ItemUtils now mutates

08 Sep 04:25
Compare
Choose a tag to compare
  • Fix bug with command manager where messages would display as their name rather than their value
  • Commands now implement PluginIdentifiableCommand, which should make them more reload-friendly
  • ItemUtils now mutates items rather than returning clones
  • ItemBuilder now no longer returns a new ItemBuilder object with each call, instead mutating and returning itself

Add support for hex codes

04 Sep 18:13
Compare
Choose a tag to compare
  • FormatUtils moved from RedLib to RedCommands
  • FormatUtils#color now supports hex codes by default in the format &#FFFFFF
  • You can now set custom formatter functions for Messages
  • Messages now support hex codes by default in the same format as FormatUtils#color

Fix rare NPE with ConfigManager

02 Sep 16:57
Compare
Choose a tag to compare
  • NPE would happen when trying to load a mapped object from config where no configuration section existed for the object
  • This would only occur if the object was stored directly in a field rather than in a map or list, and saveDefaults was not called