Package net.md_5.bungee.api.chat

# Interface TranslationProvider

public interface TranslationProvider
An object capable of being translated by the client in a `TranslatableComponent`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default TranslatableComponent`
  `asTranslatableComponent()`
  Get this translatable object as a `TranslatableComponent`.
  `default TranslatableComponent`
  `asTranslatableComponent(Object... with)`
  Get this translatable object as a `TranslatableComponent`.
  `String`
  `getTranslationKey()`
  Get the translation key.

- ## Method Details

  - ### getTranslationKey

    String getTranslationKey()
    Get the translation key.
    Returns:
      the translation key

  - ### asTranslatableComponent

    default TranslatableComponent asTranslatableComponent()
    Get this translatable object as a `TranslatableComponent`.
    Returns:
      the translatable component

  - ### asTranslatableComponent

    default TranslatableComponent asTranslatableComponent(Object... with)
    Get this translatable object as a `TranslatableComponent`.
    Parameters:
      `with` - the `Strings` and `BaseComponents` to use in the translation
    Returns:
      the translatable component