Interface PlaceholderButton

All Known Subinterfaces:
BackButton, Button, HomeButton, InventoryButton, NextButton, NoneButton, PaginateButton, PreviousButton

public interface PlaceholderButton
The `PlaceholderButton` interface allows you to perform checks using placeholders. It requires the PlaceholderAPI plugin (available at: PlaceholderAPI).
  • Method Summary

    Modifier and Type
    Method
    Description
    List<fr.maxlego08.menu.api.requirement.permissible.PlaceholderPermissible>
    Returns the list of placeholders used in the button.
    boolean
    Checks if the button uses any placeholders.
  • Method Details

    • getPlaceholders

      List<fr.maxlego08.menu.api.requirement.permissible.PlaceholderPermissible> getPlaceholders()
      Returns the list of placeholders used in the button.
      Returns:
      The list of placeholder permissions.
    • hasPlaceHolder

      boolean hasPlaceHolder()
      Checks if the button uses any placeholders.
      Returns:
      `true` if placeholders are used, otherwise `false`.