Class PlaceholderInfo

java.lang.Object
dev.aurelium.slate.info.PlaceholderInfo
Direct Known Subclasses:
TemplatePlaceholderInfo

public class PlaceholderInfo extends Object
Represents contextual information about a placeholder in a menu.
  • Constructor Details

  • Method Details

    • player

      public org.bukkit.entity.Player player()
      Gets the player viewing the menu.
      Returns:
      the player
    • placeholder

      public String placeholder()
      Gets the name of the placeholder string being replaced. This is the placeholder string in the menu file without the curly braces.
      Returns:
      the placeholder
    • data

      public PlaceholderData data()
      Gets data about the specific placeholder, such as where it is located (display name or lore), the active style, and list data if applicable.
      Returns:
      the placeholder data
    • locale

      public Locale locale()
      Gets the locale of the player viewing the menu as defined by the GlobalBehavior.localeProvider(). If the locale provider is not set, this will always return Locale.ENGLISH. This is useful if you have player-dependent locales.
      Returns:
      the locale of the player