Interface CustomElementWebRenderer
@Experimental
public interface CustomElementWebRenderer
Compiles custom elements (i.e. those added through
TagCompiler) to HTML for the website.
NOTE: This is loaded through the Java ServiceLoader mechanism by the
WebSiteGenerator. Implementations run outside the game. They may use Minecraft classes, but must not access
registries or other game state. Everything they need must come from the element or
WebRenderingContext.guide(). Data that is only available in-game can be exported using
ResourceExporter.addExtraData(Identifier, Object).
-
Method Summary
Modifier and TypeMethodDescriptionThe tag names this compiler is responsible for.voidrender(CustomElementWebRenderingContext context, Consumer<HtmlNode> output) Compiles the given custom element to HTML for insertion into the resulting web page.
-
Method Details
-
getTagNames
-
render
Compiles the given custom element to HTML for insertion into the resulting web page.
-