Skip to content

Commit ebdbb29

Browse files
New Decorating API
1 parent ae20267 commit ebdbb29

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

src/main/java/me/flame/menus/menu/Decorator.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,58 @@ public interface Decorator {
4747
* @param itemStack the item stack to fill the pages with
4848
*/
4949
void fillPages(ItemStack itemStack);
50+
51+
/**
52+
* Fill all the <strong>EMPTY</strong> slots in a specific row.
53+
* @param row the row to fill
54+
* @param borderMaterial the material to fill the row with
55+
*/
56+
void fillRow(int row, Material borderMaterial);
57+
58+
/**
59+
* Fill all the <strong>EMPTY</strong> slots in a specific row.
60+
* @param row the row to fill
61+
* @param borderMaterial the material to fill the row with
62+
*/
63+
void fillRow(int row, ItemStack borderMaterial);
64+
65+
/**
66+
* Fill all the <strong>EMPTY</strong> slots in a specific row.
67+
* @param row the row to fill
68+
* @param itemStack material to fill the row with
69+
*/
70+
void fillRow(int row, MenuItem itemStack);
71+
72+
/**
73+
* Fill all the empty slots in the A of Length * Width;
74+
* check out the implementation of "isInArea" before using this method
75+
* @param length the length.
76+
* check out some geometry if you don't know what "length" is supposed to mean
77+
* @param width the width
78+
* check out some geometry if you don't know what "length" is supposed to mean
79+
* @param borderMaterial the material
80+
*/
81+
void fillArea(int length, int width, Material borderMaterial);
82+
83+
/**
84+
* Fill all the empty slots in the A of Length * Width;
85+
* check out the implementation of "isInArea" before using this method
86+
* @param length the length.
87+
* check out some geometry if you don't know what "length" is supposed to mean
88+
* @param width the width
89+
* check out some geometry if you don't know what "length" is supposed to mean
90+
* @param borderMaterial the material
91+
*/
92+
void fillArea(int length, int width, ItemStack borderMaterial);
93+
94+
/**
95+
* Fill all the empty slots in the A of Length * Width;
96+
* check out the implementation of "isInArea" before using this method
97+
* @param length the length.
98+
* check out some geometry if you don't know what "length" is supposed to mean
99+
* @param width the width
100+
* check out some geometry if you don't know what "length" is supposed to mean
101+
* @param itemStack the material
102+
*/
103+
void fillArea(int length, int width, MenuItem itemStack);
50104
}

0 commit comments

Comments
 (0)