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 TypeMethodDescriptionbooleanhasPermission(String permission) Used to determine if this player has the specified permission node.Theunique identifierfor this player.ThePlayerInventoryfor this player.voidUsed to send a message to this player.default voidstatus(ViewerStatus status) default Optional<MenuViewer>viewer()Retrieves theMenuViewerassociated with the identifier.
-
Method Details
-
identifier
UUID identifier()Theunique identifierfor this player.- Returns:
- The
UUIDfor the player.
-
inventory
PlayerInventory<?> inventory()ThePlayerInventoryfor this player.- Returns:
- The
PlayerInventoryfor 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 theMenuViewerassociated with the identifier.- Returns:
- An
Optionalcontaining the foundMenuViewerbased on the identifier, or an emptyOptionalif the viewer is not found. - See Also:
-