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 Localizableempty()Gets a localizable that returnsnullfor all calls togetLocale().@Nullable LocaleGets the locale.default voidSets the locale.
-
Method Details
-
empty
Gets a localizable that returnsnullfor all calls togetLocale().- Returns:
- the empty localizable
-
getLocale
Gets the locale.- Returns:
- the locale, or
nullif they do not have a locale set
-
setLocale
Sets the locale. This can be set tonullto remove a locale registration.- Parameters:
locale- the new locale
-