Interface PlayerLocales.Changed
- Enclosing interface:
- PlayerLocales
public static interface PlayerLocales.Changed
An event called when a player locale update is received.
This event is only called if the player locale has actually changed from its previous value.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLocaleChanged
(@NotNull net.minecraft.server.level.ServerPlayer player, @Nullable Locale newLocale) Handle the locale change.
-
Method Details
-
onLocaleChanged
void onLocaleChanged(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @Nullable @Nullable Locale newLocale) Handle the locale change.- Parameters:
player
- the player whose locale changednewLocale
- the new locale- Since:
- 4.0.0
-