Class GUIData
The MIT License (MIT)
Copyright (c) 2024 MageMonkeyStudio
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPage()
void
fill
(org.bukkit.inventory.ItemStack[] contents) getPage()
getPage
(int page) int
getPages()
int
getSize()
void
grow()
boolean
void
init
(org.bukkit.inventory.ItemStack[] contents) boolean
boolean
isValid()
void
load
(org.bukkit.inventory.ItemStack[] contents) void
next()
void
prev()
void
void
resize
(int rows) void
save
(studio.magemonkey.codex.mccore.config.parse.DataSection data) void
show
(GUIHolder handler, PlayerData player, String title, Map<String, ? extends IconHolder> data) void
shrink()
-
Field Details
-
ROWS
- See Also:
-
PAGES
- See Also:
-
SLOTS
- See Also:
-
-
Method Details
-
show
public void show(GUIHolder handler, PlayerData player, String title, Map<String, ? extends IconHolder> data) -
getPage
-
getPage
-
getSize
public int getSize() -
init
public void init(org.bukkit.inventory.ItemStack[] contents) -
load
public void load(org.bukkit.inventory.ItemStack[] contents) -
fill
public void fill(org.bukkit.inventory.ItemStack[] contents) -
next
public void next() -
prev
public void prev() -
addPage
public void addPage() -
removePage
public void removePage() -
resize
public void resize(int rows) -
shrink
public void shrink() -
grow
public void grow() -
isValid
public boolean isValid() -
has
-
save
public void save(studio.magemonkey.codex.mccore.config.parse.DataSection data) -
isEditable
public boolean isEditable() -
getPages
public int getPages()
-