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 Details

    • identifier

      UUID identifier()
      The unique identifier for this player.
      Returns:
      The UUID for the player.
    • inventory

      PlayerInventory<?> inventory()
      The PlayerInventory for this player.
      Returns:
      The PlayerInventory for this player.
    • hasPermission

      boolean hasPermission(String permission)
      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

      void message(String message)
      Used to send a message to this player.
      Parameters:
      message - The message.
    • status

      default void status(ViewerStatus status)
    • viewer

      default Optional<MenuViewer> viewer()
      Retrieves the MenuViewer associated with the identifier.
      Returns:
      An Optional containing the found MenuViewer based on the identifier, or an empty Optional if the viewer is not found.
      See Also: