We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f75cd0 commit 87d4f45Copy full SHA for 87d4f45
src/main/java/fr/hashtek/spigot/hashgui/PaginatedHashGui.java
@@ -180,6 +180,18 @@ public PaginatedHashGui clearPageContent()
180
181
/* Page management */
182
183
+ /**
184
+ * Adds a new page to the Gui.
185
+ *
186
+ * @param page Page to add
187
+ * @return Returns itself.
188
+ */
189
+ public PaginatedHashGui addPage(Page page)
190
+ {
191
+ this.pages.add(page);
192
+ return this;
193
+ }
194
+
195
/**
196
* Creates a fresh new page.
197
*
@@ -189,7 +201,7 @@ public Page createNewPage()
201
{
202
final Page page = new Page(this);
203
- this.pages.add(page);
204
+ this.addPage(page);
205
return page;
206
}
207
0 commit comments