Package dev.aurelium.slate.info
Class MenuInfo
java.lang.Object
dev.aurelium.slate.info.MenuInfo
- Direct Known Subclasses:
ItemClick,ItemInfo,PlaceholderInfo
Represents contextual information about an instance of a menu.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlocale()Gets the locale of the player viewing the menu as defined by theGlobalBehavior.localeProvider().menu()Gets theActiveMenuinstance of the menu.org.bukkit.entity.Playerplayer()Gets the player viewing the menu.
-
Constructor Details
-
Method Details
-
player
public org.bukkit.entity.Player player()Gets the player viewing the menu.- Returns:
- the player
-
locale
Gets the locale of the player viewing the menu as defined by theGlobalBehavior.localeProvider(). If the locale provider is not set, this will always returnLocale.ENGLISH. This is useful if you have player-dependent locales.- Returns:
- the locale of the player
-