Interface TranslationHost.Translator<T>

Type Parameters:
T - The type of content which can be translated by this handler.
Enclosing interface:
TranslationHost

public static interface TranslationHost.Translator<T>
Handler providing means to translate a certain type of content.
Since:
5.2.33
  • Method Summary

    Modifier and Type
    Method
    Description
    translate(@NotNull TranslationContext context, T object)
    Translates the given content object in the specified context.
  • Method Details

    • translate

      @Nullable T translate(@NotNull @NotNull TranslationContext context, @NotNull T object)
      Translates the given content object in the specified context.
      Parameters:
      context - The context of the specified content.
      object - The object to translate.
      Returns:
      The translated object, or null if the content could not be translated.
      Since:
      5.2.33