Interface ComponentRenderer<C>

    • Method Detail

      • render

        @NotNull
        @NotNull Component render​(@NotNull
                                  @NotNull Component component,
                                  @NotNull
                                  C context)
        Renders a component.
        Parameters:
        component - the component
        context - the context
        Returns:
        the rendered component
        Since:
        4.0.0
      • mapContext

        default <T> ComponentRenderer<T> mapContext​(java.util.function.Function<T,​C> transformer)
        Return a ComponentRenderer that takes a different context type.
        Type Parameters:
        T - transformation function
        Parameters:
        transformer - context type transformer
        Returns:
        mapping renderer
        Since:
        4.0.0