Class GUIManager

  • All Implemented Interfaces:
    org.bukkit.event.Listener

    public class GUIManager
    extends java.lang.Object
    implements org.bukkit.event.Listener
    This 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 PersonalGUI getPersonal​(@NotNull java.lang.String name, @NotNull org.bukkit.entity.Player player)
      Get the player personal GUI using gui name and player instance
      @NotNull SharedGUI getShared​(@NotNull java.lang.String name)
      Get the shared GUI using gui name
      void onInventoryClick​(org.bukkit.event.inventory.InventoryClickEvent e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GUIManager

        public GUIManager​(@NotNull
                          @NotNull org.bukkit.plugin.Plugin plugin)
        Default constructor
        Parameters:
        plugin - Your plugin instance
    • 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 GUI
        player - 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)