Skip to content

v1.2.0 - The Avengers Building Exploded!

Compare
Choose a tag to compare
@coderFlameyosFlow coderFlameyosFlow released this 28 Aug 17:15
· 193 commits to main since this release
b064c7d

What's Changed

Improved

  • Improved performance of startup time at LegacyNbt
  • Improved row safety; rows now checked when creating menus/paginated menus

Added

  • MenuLayoutBuilder/MenuLayoutBuilderImpl
    Now you can create menus like this:

    // Map#of exists in Java 9/10/11+
    Menu menu = MenuLayoutBuilder.bind(Map.of('X', ItemBuilder.of(Material.STONE).buildItem()))
                  .row("XXXXXXXXX")
                  .row("X       X") // one white space = one empty slot
                  .row("XXXXXXXXX")
                  .createMenu();

    Sweet right?

  • Most iteration/streams/loops are now implemented in BaseMenu BaseMenu now implements the Iterable<?> interface, .stream() and .parallelStream() now exist aswell

  • Dynamic (automatic) resizing now exists (but optional), won't work if rows > 6 or MenuType != MenuType.CHEST

  • hasItem(Slot) now exists.

AND MORE!

Full Changelog: 1.1.3...1.2.0