Interface NodeRenderer<O>

    • Method Detail

      • render

        O render​(O renderTo,
                 dev.vankka.simpleast.core.node.Node<java.lang.Object> node,
                 MinecraftSerializerOptions<O> serializerOptions,
                 java.util.function.Function<dev.vankka.simpleast.core.node.Node<java.lang.Object>,​O> renderWithChildren)
        Renders the given Node onto the provided input using the given MinecraftSerializerOptions.
        Parameters:
        renderTo - the input 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 renderTo input with the node applied to it