Interface TranslatableComponent

All Superinterfaces:
Buildable<TranslatableComponent,TranslatableComponent.Builder>, BuildableComponent<TranslatableComponent,TranslatableComponent.Builder>, Component

public interface TranslatableComponent extends BuildableComponent<TranslatableComponent,TranslatableComponent.Builder>
A component that displays a translatable text.
  • Method Details

    • translatable

      static TranslatableComponent.Builder translatable()
      Creates a new translatable component builder.
    • translatable

      static TranslatableComponent translatable(String key, TranslationArguments parameters)
      Creates a new translatable component with the specified key and parameters.
      Parameters:
      key - the key
      parameters - the parameters
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(String key, TranslationArguments parameters, ComponentColor textColor)
      Creates a new translatable component with the specified key, parameters, and text color.
      Parameters:
      key - the key
      parameters - the parameters
      textColor - the text color
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(String key, TranslationArguments parameters, TextStyle textStyle)
      Creates a new translatable component with the specified key, parameters, and text textStyle.
      Parameters:
      key - the key
      parameters - the parameters
      textStyle - the text textStyle
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(String key)
      Creates a new translatable component with the specified key.
      Parameters:
      key - the key
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(String key, ComponentColor textColor)
      Creates a new translatable component with the specified key and text color.
      Parameters:
      key - the key
      textColor - the text color
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(String key, TextStyle textStyle)
      Creates a new translatable component with the specified key and text textStyle.
      Parameters:
      key - the key
      textStyle - the text textStyle
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.ctype.MappableContent content)
      Creates a new translatable component with the specified content.
      Parameters:
      content - the content
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.ctype.MappableContent content, ComponentColor textColor)
      Creates a new translatable component with the specified content and text color.
      Parameters:
      content - the content
      textColor - the text color
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.ctype.MappableContent content, TextStyle textStyle)
      Creates a new translatable component with the specified content and text textStyle.
      Parameters:
      content - the content
      textStyle - the text textStyle
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.game.Team team)
      Creates a new translatable component with the specified team.
      Parameters:
      team - the team
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.game.Team team, ComponentColor textColor)
      Creates a new translatable component with the specified team and text color.
      Parameters:
      team - the team
      textColor - the text color
      Returns:
      the translatable component
    • translatable

      static TranslatableComponent translatable(mindustry.game.Team team, TextStyle textStyle)
      Creates a new translatable component with the specified team and text textStyle.
      Parameters:
      team - the team
      textStyle - the text textStyle
      Returns:
      the translatable component
    • getKey

      String getKey()
      Returns the key of the translation.
    • getParameters

      TranslationArguments getParameters()
      Returns the parameters of the translation.