Interface Localizable

All Known Implementing Classes:
Player

public interface Localizable
Represents something which can have a locale.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Localizable
    Gets a localizable that returns null for all calls to getLocale().
    @Nullable Locale
    Gets the locale.
    default void
    setLocale(@Nullable Locale locale)
    Sets the locale.
  • Method Details

    • empty

      @NotNull static @NotNull Localizable empty()
      Gets a localizable that returns null for all calls to getLocale().
      Returns:
      the empty localizable
    • getLocale

      @Nullable @Nullable Locale getLocale()
      Gets the locale.
      Returns:
      the locale, or null if they do not have a locale set
    • setLocale

      default void setLocale(@Nullable @Nullable Locale locale)
      Sets the locale. This can be set to null to remove a locale registration.
      Parameters:
      locale - the new locale