Interface LocaleHolderBridge

All Known Implementing Classes:
ServerPlayerMixin

public interface LocaleHolderBridge
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Locale
     
    static @Nullable Locale
    toLocale(@Nullable String mcLocale)
    Take a locale string provided from a minecraft client and attempt to parse it as a locale.
  • Method Details

    • toLocale

      @Nullable static @Nullable Locale toLocale(@Nullable @Nullable String mcLocale)
      Take a locale string provided from a minecraft client and attempt to parse it as a locale. These are not strictly compliant with the iso standard, so we try to make things a bit more normalized.
      Parameters:
      mcLocale - The locale string, in the format provided by the Minecraft client
      Returns:
      A Locale object matching the provided locale string
    • adventure$locale

      @NotNull @NotNull Locale adventure$locale()