Package net.frozenspace.frostlib.gui
Class GUIManager
- java.lang.Object
-
- net.frozenspace.frostlib.gui.GUIManager
-
- All Implemented Interfaces:
org.bukkit.event.Listener
public class GUIManager extends java.lang.Object implements org.bukkit.event.ListenerThis class is used for create/saving GUI
-
-
Constructor Summary
Constructors Constructor Description GUIManager(@NotNull org.bukkit.plugin.Plugin plugin)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PersonalGUIgetPersonal(@NotNull java.lang.String name, @NotNull org.bukkit.entity.Player player)Get the player personal GUI using gui name and player instance@NotNull SharedGUIgetShared(@NotNull java.lang.String name)Get the shared GUI using gui namevoidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent e)
-
-
-
Method Detail
-
getPersonal
@NotNull public @NotNull PersonalGUI getPersonal(@NotNull @NotNull java.lang.String name, @NotNull @NotNull org.bukkit.entity.Player player)
Get the player personal GUI using gui name and player instance- Parameters:
name- Name of the GUIplayer- Instance of the player- Returns:
- The GUI found or a new one
-
getShared
@NotNull public @NotNull SharedGUI getShared(@NotNull @NotNull java.lang.String name)
Get the shared GUI using gui name- Parameters:
name- Name of the GUI- Returns:
- The GUI found or a new one
-
onInventoryClick
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent e)
-
-