src/main/java/dev/lambdaurora/spruceui/widget/text/SpruceTextAreaWidget.java
protected void drawText(MatrixStack matrices) {
        int length = Math.min(this.lines.size(), this.displayedLines);

        int textColor = this.getTextColor();
        int textX = this.getX() + 4;

        int lineY = this.getY() + 4;
        for (int row = this.firstLine; row < this.firstLine + length; row++) {
            var line = this.lines.get(row);
            if (line == null)
                continue;
            if (line.endsWith("\n")) line = line.substring(0, line.length() - 1);

            drawTextWithShadow(matrices, this.textRenderer, new LiteralText(line), textX, lineY, textColor);
            this.drawSelection(matrices, line, lineY, row);

            lineY += this.textRenderer.fontHeight;
        }
    }
/**
     * Draws the text of the text area.
     *
     * @param matrices the matrices
     */
Draws the text of the text area.
@param matrices the matrices
Draws the text of the text area . @param matrices the matrices
protected void drawText(MatrixStack matrices) {
        int length = Math.min(this.lines.size(), this.displayedLines);
        int textColor = this.getTextColor();
        int textX = this.getX() + 4;
        int lineY = this.getY() + 4;
        for (int row = this.firstLine; row < this.firstLine + length; row++) {
            var line = this.lines.get(row);
            if (line == null)
                continue;
            if (line.endsWith("\n")) line = line.substring(0, line.length() - 1);
            drawTextWithShadow(matrices, this.textRenderer, new LiteralText(line), textX, lineY, textColor);
            this.drawSelection(matrices, line, lineY, row);
            lineY += this.textRenderer.fontHeight;
        }
    }
protected void drawText ( MatrixStack matrices ) { int length = Math . min ( this . lines . size ( ) , this . displayedLines ) ; int textColor = this . getTextColor ( ) ; int textX = this . getX ( ) + 4 ; int lineY = this . getY ( ) + 4 ; for ( int row = this . firstLine ; row < this . firstLine + length ; row ++ ) { var line = this . lines . get ( row ) ; if ( line == null ) continue ; if ( line . endsWith ( "\n" ) ) line = line . substring ( 0 , line . length ( ) - 1 ) ; drawTextWithShadow ( matrices , this . textRenderer , new LiteralText ( line ) , textX , lineY , textColor ) ; this . drawSelection ( matrices , line , lineY , row ) ; lineY += this . textRenderer . fontHeight ; } }
Draws the text of the text area.
Draws the text of the text area .