Package net.minestom.server.adventure
Interface Localizable
- All Known Implementing Classes:
Player
public interface Localizable
Represents something which can have a locale.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Localizable
empty()
Gets a localizable that returnsnull
for all calls togetLocale()
.@Nullable Locale
Gets the locale.default void
Sets the locale.
-
Method Details
-
empty
Gets a localizable that returnsnull
for all calls togetLocale()
.- Returns:
- the empty localizable
-
getLocale
Gets the locale.- Returns:
- the locale, or
null
if they do not have a locale set
-
setLocale
Sets the locale. This can be set tonull
to remove a locale registration.- Parameters:
locale
- the new locale
-