Class Gui
java.lang.Object
io.github.somesourcecode.someguiapi.scene.gui.Gui
- Direct Known Subclasses:
ChestGui
The base class for GUIs that can be shown to players.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inventory
protected org.bukkit.inventory.Inventory inventory
-
-
Constructor Details
-
Gui
public Gui()
-
-
Method Details
-
show
public abstract void show(org.bukkit.entity.Player player) Shows this GUI to the specified player.- Parameters:
player- the player
-
getViewers
Returns a list of players that are currently viewing this GUI.- Returns:
- a list of players viewing this GUI
-
update
public void update()Updates the GUI for all viewers.
-