File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/main/java/net/thenextlvl/gopaint/menu Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 33import core .paper .gui .PaginatedGUI ;
44import core .paper .item .ActionItem ;
55import core .paper .item .ItemBuilder ;
6- import lombok .Getter ;
76import net .kyori .adventure .text .Component ;
87import net .kyori .adventure .text .format .NamedTextColor ;
98import net .thenextlvl .gopaint .api .brush .PatternBrush ;
1817
1918@ NullMarked
2019public class BrushesMenu extends PaginatedGUI <GoPaintProvider , PatternBrush > {
21- private final @ Getter Pagination pagination = new Pagination (
20+ private final Pagination pagination = new Pagination (
2221 IntStream .range (0 , getSize () - 9 ).toArray (),
2322 getSize () - 6 ,
2423 getSize () - 4
@@ -59,4 +58,9 @@ public Component getPageFormat(int page) {
5958 public Collection <PatternBrush > getElements () {
6059 return plugin .brushRegistry ().getBrushes ().toList ();
6160 }
61+
62+ @ Override
63+ public Pagination getPagination () {
64+ return pagination ;
65+ }
6266}
Original file line number Diff line number Diff line change 22
33import core .paper .gui .AbstractGUI ;
44import core .paper .item .ItemBuilder ;
5- import lombok .Getter ;
65import net .kyori .adventure .text .Component ;
76import net .kyori .adventure .text .format .NamedTextColor ;
87import net .kyori .adventure .text .format .TextDecoration ;
@@ -34,7 +33,7 @@ public class MainMenu extends AbstractGUI {
3433 private final PlayerBrushSettings settings ;
3534 private final GoPaintPlugin plugin ;
3635
37- private final @ Getter Inventory inventory ;
36+ private final Inventory inventory ;
3837
3938 public MainMenu (GoPaintPlugin plugin , PlayerBrushSettings settings , Player owner ) {
4039 super (owner , plugin .bundle ().component (owner , "menu.main.title" ));
@@ -325,4 +324,8 @@ private void formatDefault() {
325324 inventory .setItem (2 , orangeGlassPane );
326325 inventory .setItem (20 , orangeGlassPane );
327326 }
327+
328+ public Inventory getInventory () {
329+ return this .inventory ;
330+ }
328331}
You can’t perform that action at this time.
0 commit comments