Interface MenuPlayer
- All Known Implementing Classes:
BukkitPlayer
,FoliaPlayer
,PaperPlayer
,SpongePlayer
public interface MenuPlayer
Represents a player object for a platform. This holds all methods that need to be converted to
each individual platform.
- Since:
- 1.0.0
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(String permission) Used to determine if this player has the specified permission node.Theunique identifier
for this player.ThePlayerInventory
for this player.void
Used to send a message to this player.default void
status
(ViewerStatus status) default Optional<MenuViewer>
viewer()
Retrieves theMenuViewer
associated with the identifier.
-
Method Details
-
identifier
UUID identifier()Theunique identifier
for this player.- Returns:
- The
UUID
for the player.
-
inventory
PlayerInventory<?> inventory()ThePlayerInventory
for this player.- Returns:
- The
PlayerInventory
for this player.
-
hasPermission
Used to determine if this player has the specified permission node.- Parameters:
permission
- The node to check for.- Returns:
- True if the player has the permission, otherwise false.
-
message
Used to send a message to this player.- Parameters:
message
- The message.
-
viewer
Retrieves theMenuViewer
associated with the identifier.- Returns:
- An
Optional
containing the foundMenuViewer
based on the identifier, or an emptyOptional
if the viewer is not found. - See Also:
-