Interface TranslatableComponent

    • Method Detail

      • key

        @NotNull
        @NotNull String key()
        Gets the translation key.
        Returns:
        the translation key
        Since:
        4.0.0
      • key

        @Contract(pure=true)
        @NotNull
        default @NotNull TranslatableComponent key​(@NotNull
                                                   @NotNull Translatable translatable)
        Sets the translation key.
        Parameters:
        translatable - the translatable object to get the key from
        Returns:
        a translatable component
        Since:
        4.8.0
      • key

        @Contract(pure=true)
        @NotNull
        @NotNull TranslatableComponent key​(@NotNull
                                           @NotNull String key)
        Sets the translation key.
        Parameters:
        key - the translation key
        Returns:
        a translatable component
        Since:
        4.0.0
      • args

        @NotNull
        @NotNull List<Component> args()
        Gets the unmodifiable list of translation arguments.
        Returns:
        the unmodifiable list of translation arguments
        Since:
        4.0.0
      • args

        @Contract(pure=true)
        @NotNull
        @NotNull TranslatableComponent args​(@NotNull
                                            @NotNull ComponentLike @NotNull ... args)
        Sets the translation arguments for this component.
        Parameters:
        args - the translation arguments
        Returns:
        a translatable component
        Since:
        4.0.0
      • args

        @Contract(pure=true)
        @NotNull
        @NotNull TranslatableComponent args​(@NotNull
                                            @NotNull List<? extends ComponentLike> args)
        Sets the translation arguments for this component.
        Parameters:
        args - the translation arguments
        Returns:
        a translatable component
        Since:
        4.0.0
      • examinableProperties

        @NotNull
        default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
        Specified by:
        examinableProperties in interface Component
        Specified by:
        examinableProperties in interface net.kyori.examination.Examinable