v1.2.0 - The Avengers Building Exploded!
What's Changed
- Update README.md by @coderFlameyosFlow in #6
- Update README.md by @coderFlameyosFlow in #7
- A LOT of features. by @coderFlameyosFlow in #8
- MenuIterator by @Mqzn, This is the class
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