Interface Shop


public interface Shop
Represents a single shop page.

It does not represent all items existing, but only the ones that have being configured to be displayed on this shop (page).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the unique id of this shop page.
    boolean
    hasOpen(Player player)
    Get whether the given player has this shop open.
    void
    open(Player player)
    Open this shop for the given player.
  • Method Details

    • getId

      String getId()
      Returns the unique id of this shop page.

      It is promised that this id does not change over runtime.

      Returns:
      The unique id
    • open

      void open(Player player)
      Open this shop for the given player.

      It might not open the shop immediately with the next tick, as it might have to load the player's data first.

      Parameters:
      player - The player to open the shop for
    • hasOpen

      boolean hasOpen(Player player)
      Get whether the given player has this shop open.
      Parameters:
      player - The player to check
      Returns:
      true if the player has this shop open