Package me.efekos.simpler.menu
Class MenuManager
java.lang.Object
me.efekos.simpler.menu.MenuManager
Static manager class for
Menu
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MenuData
getMenuData
(org.bukkit.entity.Player player) Get someone's menu data outside the menus, so you can change some data.static void
Opens a menu for aPlayer
.static void
setPlugin
(org.bukkit.plugin.java.JavaPlugin plugin) Set up theMenuManager
by giving it aJavaPlugin
.static void
updateMenuData
(org.bukkit.entity.Player player, MenuData newMenuData) Updates menu data of someone.
-
Constructor Details
-
MenuManager
public MenuManager()Creates a new menu manager instance if you somehow need one.
-
-
Method Details
-
setPlugin
public static void setPlugin(org.bukkit.plugin.java.JavaPlugin plugin) Set up theMenuManager
by giving it aJavaPlugin
.- Parameters:
plugin
- Instance of your plugin.
-
getMenuData
Get someone's menu data outside the menus, so you can change some data.- Parameters:
player
-Player
who you need to get menu data.- Returns:
MenuData
stored for thePlayer
given.
-
Open
Opens a menu for aPlayer
.
-