Package net.tnemc.menu.core
Class PlayerInstancePage
java.lang.Object
net.tnemc.menu.core.Page
net.tnemc.menu.core.PlayerInstancePage
PlayerInstancePage
- Since:
- 1.6.0.0
- Author:
- creatorfromhell
-
Field Summary
Fields inherited from class net.tnemc.menu.core.Page
clickHandler, icons, open
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an icon to the player's instance.Retrieves the icons for a given player.boolean
onClick
(UUID player, MenuClickHandler handler) Handles a click action for a specific viewer identified by its UUID.void
removeInstance
(UUID uuid) Removes an instance of PlayerInstance identified by UUID from the players map.void
setColumn
(UUID player, int menuRows, int startingRow, int endingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setColumn
(UUID player, int menuRows, int startingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setColumn
(UUID player, int menuRows, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setRow
(UUID player, int row, int startingColumn, int endingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified row.void
setRow
(UUID player, int row, int startingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified row.void
setRow
(UUID player, int row, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified row.
-
Field Details
-
players
-
-
Constructor Details
-
PlayerInstancePage
public PlayerInstancePage(int pageNumber)
-
-
Method Details
-
getIcons
Retrieves the icons for a given player.- Parameters:
player
- The UUID of the player.- Returns:
- A map of icon slots to Icon objects.
-
removeInstance
Removes an instance of PlayerInstance identified by UUID from the players map.- Parameters:
uuid
- The UUID of the player instance to be removed.