Class SharedGUI


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

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

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

      • open

        public void open​(@NotNull
                         @NotNull org.bukkit.entity.Player player)
        Open the first page to the selected player
        Parameters:
        player - Player which will see the page
      • show

        public void show​(@NotNull
                         @NotNull Page page,
                         @NotNull
                         @NotNull org.bukkit.entity.Player player)
        Show the selected page to the selected player
        Parameters:
        page - Page to show
        player - Player which will see the page
      • next

        public void next​(@NotNull
                         @NotNull org.bukkit.entity.Player player)
        Show the next page to the selected player (if exist)
        Parameters:
        player - Player which will see the page
      • previous

        public void previous​(@NotNull
                             @NotNull org.bukkit.entity.Player player)
        Show the previous page to the selected player (if exist)
        Parameters:
        player - Player which will see the page