Interface TranslationArgumentLike

All Superinterfaces:
ComponentLike
All Known Subinterfaces:
TranslationArgument
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TranslationArgumentLike extends ComponentLike
Represents anything that can be represented as a non-Component TranslationArgument.
Since:
4.15.0
  • Method Details

    • asTranslationArgument

      @NotNull @NotNull TranslationArgument asTranslationArgument()
      Get the argument representation of this object.
      Returns:
      the argument representation
      Since:
      4.15.0
    • asComponent

      @NotNull default @NotNull Component asComponent()
      Description copied from interface: ComponentLike
      Gets a Component representation.
      Specified by:
      asComponent in interface ComponentLike
      Returns:
      a component