Class PersonalGUI


  • public class PersonalGUI
    extends GUI
    This class represent a GUI used by one and only one player If you need a GUI who can be accessed by different player use SharedGUI
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bukkit.entity.Player getPlayer()
      Get the owner of this GUI
      void next()
      Show the next page to the player (if exist)
      void open()
      Open the first page of the GUI to the owner
      void previous()
      Show the previous page to the player (if exist)
      void show​(@NotNull Page page)
      Show the selected page to the owner
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • open

        public void open()
        Open the first page of the GUI to the owner
      • show

        public void show​(@NotNull
                         @NotNull Page page)
        Show the selected page to the owner
        Parameters:
        page - Page to show
      • next

        public void next()
        Show the next page to the player (if exist)
      • previous

        public void previous()
        Show the previous page to the player (if exist)
      • getPlayer

        public org.bukkit.entity.Player getPlayer()
        Get the owner of this GUI
        Returns:
        The player instance