6
6
import me .flame .menus .menu .fillers .MenuFiller ;
7
7
8
8
import org .bukkit .Material ;
9
+ import org .bukkit .entity .*;
9
10
import org .bukkit .inventory .ItemStack ;
10
11
import org .jetbrains .annotations .Contract ;
11
12
import org .jetbrains .annotations .NotNull ;
12
13
13
14
@ SuppressWarnings ("unused" )
14
- public final class PageDecoration {
15
+ public final class PageDecoration implements Decorator {
15
16
@ NotNull
16
17
private final PaginatedMenu menu ;
17
18
@@ -25,11 +26,6 @@ public static PageDecoration create(PaginatedMenu menu) {
25
26
return new PageDecoration (menu );
26
27
}
27
28
28
- /**
29
- * Fills the borders of the pages with a given item stack.
30
- *
31
- * @param itemStack the item stack to fill the pages with
32
- */
33
29
public void fillPageBorders (ItemStack itemStack ) {
34
30
int size = menu .size ;
35
31
for (Page page : menu .pageList ) {
@@ -39,11 +35,6 @@ public void fillPageBorders(ItemStack itemStack) {
39
35
}
40
36
}
41
37
42
- /**
43
- * Fills the borders of the pages with a given item stack.
44
- *
45
- * @param borderMaterial the item stack to fill the pages with
46
- */
47
38
public void fillPageBorders (Material borderMaterial ) {
48
39
ItemStack itemStack = new ItemStack (borderMaterial );
49
40
int size = menu .size ;
@@ -54,11 +45,6 @@ public void fillPageBorders(Material borderMaterial) {
54
45
}
55
46
}
56
47
57
- /**
58
- * Fills the borders of the pages with a given item stack.
59
- *
60
- * @param item the item stack to fill the pages with
61
- */
62
48
public void fillPageBorders (MenuItem item ) {
63
49
int size = menu .size ;
64
50
for (Page page : menu .pageList ) {
@@ -68,11 +54,6 @@ public void fillPageBorders(MenuItem item) {
68
54
}
69
55
}
70
56
71
- /**
72
- * Fills the pages of a menu with a given item stack.
73
- *
74
- * @param borderMaterial the item stack to fill the pages with
75
- */
76
57
public void fillPages (Material borderMaterial ) {
77
58
ItemStack item = new ItemStack (borderMaterial );
78
59
int size = menu .size ;
@@ -86,11 +67,6 @@ public void fillPages(Material borderMaterial) {
86
67
}
87
68
}
88
69
89
- /**
90
- * Fills the pages of a menu with a given item stack.
91
- *
92
- * @param menuItem the item stack to fill the pages with
93
- */
94
70
public void fillPages (@ NotNull MenuItem menuItem ) {
95
71
int size = menu .size ;
96
72
for (Page page : menu .pageList ) {
@@ -103,11 +79,6 @@ public void fillPages(@NotNull MenuItem menuItem) {
103
79
}
104
80
}
105
81
106
- /**
107
- * Fills the pages of a menu with a given item stack.
108
- *
109
- * @param itemStack the item stack to fill the pages with
110
- */
111
82
public void fillPages (ItemStack itemStack ) {
112
83
int size = menu .size ;
113
84
for (Page page : menu .pageList ) {
@@ -119,4 +90,4 @@ public void fillPages(ItemStack itemStack) {
119
90
}
120
91
}
121
92
}
122
- }
93
+ }
0 commit comments