Packages com.phoenixplugins.sdk.api locales translatable

Interface Translation


public interface Translation
  • Method Summary

    Modifier and Type
    Method
    Description
    arguments(Object... arguments)
    Replaces the arguments in the translatable text.
    String
    Converts the translatable object into a string representation.
    Converts the translatable text to color less.
    boolean
    Checks if the translatable instance is empty.
    Converts the translatable text to lowercase.
    postProcessor(Function<String,String> parser)
    Applies a post-processing function to the translatable text.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Checks if the translatable instance is empty.
      Returns:
      true if empty, otherwise false.
    • postProcessor

      Translation postProcessor(Function<String,String> parser)
      Applies a post-processing function to the translatable text.
      Parameters:
      parser - The function to modify the string representation.
      Returns:
      A new translatable instance with the modification applied.
    • arguments

      Translation arguments(Object... arguments)
      Replaces the arguments in the translatable text.
      Parameters:
      arguments - The arguments to replace in the translation.
      Returns:
      A new translatable instance with updated arguments.
    • colorless

      Translation colorless()
      Converts the translatable text to color less.
      Returns:
      A new translatable instance with colorless text.
    • lowercase

      Translation lowercase()
      Converts the translatable text to lowercase.
      Returns:
      A new translatable instance with lowercase text.
    • asString

      String asString()
      Converts the translatable object into a string representation.
      Returns:
      The string representation of the translatable text.
Last updated 22 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping