Interface LocaleProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LocaleProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    get(org.bukkit.entity.Player player)
    Gets the locale of a player.
  • Method Details

    • get

      Locale get(org.bukkit.entity.Player player)
      Gets the locale of a player. This is used in context objects like MenuInfo to easily get the locale of a player.
      Parameters:
      player - the player
      Returns:
      the locale