Package org.reprogle.honeypot.common.gui
Class GUIMenu
java.lang.Object
org.reprogle.honeypot.common.gui.GUIMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddButtons(GUIButton... buttons) voidcheckIfPaginationNeeded(boolean needsPagination, org.bukkit.inventory.Inventory inventory) voidvoidgetButton(int slot) getButton(int page, int slot) intintorg.bukkit.inventory.InventoryintgetName()org.bukkit.plugin.java.JavaPlugingetOwner()intintgetTag()booleanisStickiedSlot(int slot) booleannextPage(org.bukkit.entity.HumanEntity viewer) booleanpreviousPage(org.bukkit.entity.HumanEntity viewer) voidrefreshInventory(org.bukkit.entity.HumanEntity viewer) voidremoveButton(int slot) voidremoveButton(int page, int slot) voidsetAutomaticPaginationEnabled(boolean enableAutomaticPagination) voidsetBlockDefaultInteractions(boolean blockDefaultInteractions) voidvoidvoidsetCurrentPage(int page) voidvoidsetOnClose(Consumer<GUIMenu> onClose) voidsetOnPageChange(Consumer<GUIMenu> onPageChange) voidsetPaginationButtonBuilder(GUIPageButtonBuilder paginationButtonBuilder) voidsetRawName(String name) voidsetRowsPerPage(int rowsPerPage) voidvoidstickSlot(int slot) voidunstickSlot(int slot)
-
Method Details
-
setBlockDefaultInteractions
public void setBlockDefaultInteractions(boolean blockDefaultInteractions) -
areDefaultInteractionsBlocked
-
setAutomaticPaginationEnabled
public void setAutomaticPaginationEnabled(boolean enableAutomaticPagination) -
isAutomaticPaginationEnabled
-
setPaginationButtonBuilder
-
getPaginationButtonBuilder
-
getOwner
public org.bukkit.plugin.java.JavaPlugin getOwner() -
getRowsPerPage
public int getRowsPerPage() -
getPageSize
public int getPageSize() -
setRowsPerPage
public void setRowsPerPage(int rowsPerPage) -
getTag
-
setTag
-
setName
-
setRawName
-
getName
-
addButton
-
addButtons
-
setButton
-
setButton
-
removeButton
public void removeButton(int slot) -
removeButton
public void removeButton(int page, int slot) -
getButton
-
getButton
-
getCurrentPage
public int getCurrentPage() -
setCurrentPage
public void setCurrentPage(int page) -
getMaxPage
public int getMaxPage() -
getHighestFilledSlot
public int getHighestFilledSlot() -
nextPage
public boolean nextPage(org.bukkit.entity.HumanEntity viewer) -
previousPage
public boolean previousPage(org.bukkit.entity.HumanEntity viewer) -
stickSlot
public void stickSlot(int slot) -
unstickSlot
public void unstickSlot(int slot) -
clearStickiedSlots
public void clearStickiedSlots() -
isStickiedSlot
public boolean isStickiedSlot(int slot) -
clearAllButStickiedSlots
public void clearAllButStickiedSlots() -
getOnClose
-
setOnClose
-
getOnPageChange
-
setOnPageChange
-
refreshInventory
public void refreshInventory(org.bukkit.entity.HumanEntity viewer) -
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder
-
checkIfPaginationNeeded
public void checkIfPaginationNeeded(boolean needsPagination, org.bukkit.inventory.Inventory inventory)
-