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
FieldsFields inherited from class net.tnemc.menu.core.Page
clickHandler, icons, open -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an icon to the player's instance.Retrieves the icons for a given player.booleanonClick(UUID player, MenuClickHandler handler) Handles a click action for a specific viewer identified by its UUID.voidremoveInstance(UUID uuid) Removes an instance of PlayerInstance identified by UUID from the players map.voidsetColumn(UUID player, int menuRows, int startingRow, int endingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetColumn(UUID player, int menuRows, int startingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetColumn(UUID player, int menuRows, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetRow(UUID player, int row, int startingColumn, int endingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified row.voidsetRow(UUID player, int row, int startingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified row.voidsetRow(UUID player, int row, IconBuilder iconBuilder) Sets the specifiedIconBuilderto 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.