Package net.frozenspace.frostlib.gui
Class SharedGUI
- java.lang.Object
-
- net.frozenspace.frostlib.gui.design.GUI
-
- net.frozenspace.frostlib.gui.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 usePersonalGUI
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnext(@NotNull org.bukkit.entity.Player player)Show the next page to the selected player (if exist)voidopen(@NotNull org.bukkit.entity.Player player)Open the first page to the selected playervoidprevious(@NotNull org.bukkit.entity.Player player)Show the previous page to the selected player (if exist)voidshow(@NotNull Page page, @NotNull org.bukkit.entity.Player player)Show the selected page to the selected player
-
-
-
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 showplayer- 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
-
-