Skip to content

Commit 0d20c2d

Browse files
Decorator
1 parent a0e66ab commit 0d20c2d

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package me.flame.menus.menu;
2+
3+
import me.flame.menus.items.MenuItem;
4+
import org.bukkit.Material;
5+
import org.bukkit.inventory.ItemStack;
6+
import org.jetbrains.annotations.NotNull;
7+
8+
public interface Decorator {
9+
/**
10+
* Fills the borders of the pages with a given item stack.
11+
*
12+
* @param itemStack the item stack to fill the pages with
13+
*/
14+
void fillPageBorders(ItemStack itemStack);
15+
16+
/**
17+
* Fills the borders of the pages with a given item stack.
18+
*
19+
* @param borderMaterial the item stack to fill the pages with
20+
*/
21+
void fillPageBorders(Material borderMaterial);
22+
23+
/**
24+
* Fills the borders of the pages with a given item stack.
25+
*
26+
* @param item the item stack to fill the pages with
27+
*/
28+
void fillPageBorders(MenuItem item);
29+
30+
/**
31+
* Fills the pages of a menu with a given item stack.
32+
*
33+
* @param borderMaterial the item stack to fill the pages with
34+
*/
35+
void fillPages(Material borderMaterial);
36+
37+
/**
38+
* Fills the pages of a menu with a given item stack.
39+
*
40+
* @param menuItem the item stack to fill the pages with
41+
*/
42+
void fillPages(@NotNull MenuItem menuItem);
43+
44+
/**
45+
* Fills the pages of a menu with a given item stack.
46+
*
47+
* @param itemStack the item stack to fill the pages with
48+
*/
49+
void fillPages(ItemStack itemStack);
50+
}

0 commit comments

Comments
 (0)