Class Menu
java.lang.Object
me.fami6xx.rpuniverse.core.menuapi.types.Menu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
- Direct Known Subclasses:
AdminPropertyEditMenu,BuyPropertyMenu,CreateLockSelectTypeMenu,EditConsumableMenu,JobAdminMenu,JobBankActionsMenu,JobBossLocationMenu,JobBossMenu,JobPlayerMenu,JobPositionMenu,JobSettingsMenu,LanguageFieldEditorMenu,LocationActionMenu,LockMenu,PaginatedMenu,PlayerManagePropertyMenu,PropertyDetailsMenu,RentPropertyMenu,SellStepEditorMenu,WorkingStepEditorMenu,WorkingStepInteractableMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bukkit.inventory.ItemStackprotected org.bukkit.inventory.Inventoryprotected PlayerMenu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.InventoryReturns the inventory associated with this menu.abstract Stringabstract intgetSlots()abstract voidhandleMenu(org.bukkit.event.inventory.InventoryClickEvent e)static org.bukkit.inventory.ItemStackmakeColoredGlass(org.bukkit.DyeColor color)Makes a colored glass pane item.voidopen()Opens the menu for the player.voidSets the filler glass item to the inventory.abstract void
-
Field Details
-
playerMenu
-
inventory
protected org.bukkit.inventory.Inventory inventory -
FILLER_GLASS
protected org.bukkit.inventory.ItemStack FILLER_GLASS
-
-
Constructor Details
-
Method Details
-
getMenuName
-
getSlots
public abstract int getSlots() -
handleMenu
public abstract void handleMenu(org.bukkit.event.inventory.InventoryClickEvent e) -
setMenuItems
public abstract void setMenuItems() -
getMenuTags
-
open
public void open()Opens the menu for the player. -
getInventory
public org.bukkit.inventory.Inventory getInventory()Returns the inventory associated with this menu.- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder- Returns:
- the inventory associated with this menu.
-
setFillerGlass
public void setFillerGlass()Sets the filler glass item to the inventory. -
makeColoredGlass
public static org.bukkit.inventory.ItemStack makeColoredGlass(org.bukkit.DyeColor color)Makes a colored glass pane item.- Parameters:
color- the color of the glass pane.- Returns:
- the colored glass pane item.
-