Interface MinecraftNodeRenderer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      net.kyori.adventure.text.Component render​(net.kyori.adventure.text.Component baseComponent, dev.vankka.simpleast.core.node.Node<java.lang.Object> node, MinecraftSerializerOptions<net.kyori.adventure.text.Component> serializerOptions, java.util.function.Function<dev.vankka.simpleast.core.node.Node<java.lang.Object>,​net.kyori.adventure.text.Component> renderWithChildren)
      Renders the given Node onto the provided Component using the given MinecraftSerializerOptions.
    • Method Detail

      • render

        net.kyori.adventure.text.Component render​(net.kyori.adventure.text.Component baseComponent,
                                                  dev.vankka.simpleast.core.node.Node<java.lang.Object> node,
                                                  MinecraftSerializerOptions<net.kyori.adventure.text.Component> serializerOptions,
                                                  java.util.function.Function<dev.vankka.simpleast.core.node.Node<java.lang.Object>,​net.kyori.adventure.text.Component> renderWithChildren)
        Renders the given Node onto the provided Component using the given MinecraftSerializerOptions.
        Specified by:
        render in interface NodeRenderer<net.kyori.adventure.text.Component>
        Parameters:
        baseComponent - the input component to apply the node to
        node - the node
        serializerOptions - the serializer options for this render
        renderWithChildren - a function to allow rendering a node recursively
        Returns:
        the new component with the node applied to it