src/main/java/dev/lambdaurora/spruceui/widget/text/SpruceTextFieldWidget.java
protected void drawText(MatrixStack matrices) {
        int textColor = this.getTextColor();
        int x = this.getX() + 4;
        int y = this.getY() + this.getHeight() / 2 - 4;

        var displayedText = this.client.textRenderer.trimToWidth(this.text.substring(this.firstCharacterIndex),
                this.getInnerWidth());

        this.client.textRenderer.drawWithShadow(matrices, this.renderTextProvider.apply(displayedText, this.firstCharacterIndex),
                x, y, textColor);
        this.drawSelection(displayedText, y);
    }
/**
     * 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 textColor = this.getTextColor();
        int x = this.getX() + 4;
        int y = this.getY() + this.getHeight() / 2 - 4;
        var displayedText = this.client.textRenderer.trimToWidth(this.text.substring(this.firstCharacterIndex),
                this.getInnerWidth());
        this.client.textRenderer.drawWithShadow(matrices, this.renderTextProvider.apply(displayedText, this.firstCharacterIndex),
                x, y, textColor);
        this.drawSelection(displayedText, y);
    }
protected void drawText ( MatrixStack matrices ) { int textColor = this . getTextColor ( ) ; int x = this . getX ( ) + 4 ; int y = this . getY ( ) + this . getHeight ( ) / 2 - 4 ; var displayedText = this . client . textRenderer . trimToWidth ( this . text . substring ( this . firstCharacterIndex ) , this . getInnerWidth ( ) ) ; this . client . textRenderer . drawWithShadow ( matrices , this . renderTextProvider . apply ( displayedText , this . firstCharacterIndex ) , x , y , textColor ) ; this . drawSelection ( displayedText , y ) ; }
Draws the text of the text area.
Draws the text of the text area .