RenderElementBuilder
com.jsmacrosce.jsmacros.client.api.classes.render.components.RenderElementBuilder
Base class for builders that configure render elements for a 2D overlay.
js
const draw = Hud.createDraw2D();
draw.lineBuilder().pos(0, 0, 50, 50).color(Color.rgb(0xFF, 0xFF, 0xFF)).width(2).buildAndAdd();
draw.register();Type Parameters
T: the type of the render element for this builder
Methods
build
Creates an element associated with the parent overlay without adding it to the overlay.
Returns: the created element
buildAndAdd
Creates an element and attempts to add it to the parent overlay. If addition is refused, the created element is still returned.
Returns: the created element, whether or not it was added