Class MenuInfo

java.lang.Object
dev.aurelium.slate.info.MenuInfo
Direct Known Subclasses:
ItemClick, ItemInfo, PlaceholderInfo

public class MenuInfo extends Object
Represents contextual information about an instance of a menu.
  • Constructor Details

    • MenuInfo

      public MenuInfo(Slate slate, org.bukkit.entity.Player player, ActiveMenu menu)
  • Method Details

    • player

      public org.bukkit.entity.Player player()
      Gets the player viewing the menu.
      Returns:
      the player
    • 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