src/main/java/net/azagwen/atbyw/client/render/model/BakedTimerRepeaterDigitModel.java
public void emitDigitModel(QuadEmitter emitter, BlockState state, boolean right) {
        var digits = this.getDigits(state.get(TimerRepeaterBlock.TIMER_DELAY));
        var powered = state.get(TimerRepeaterBlock.POWERED);
        var sprite = DIGITS_TEXTURE.getSprite();
        var digit = digits[(right ? 1 : 0)];

        ModelUtil.emitQuad(emitter, Direction.UP, (6.5F + (right ? 2.0F : -2.0F)), 5.5F, (9.5F + (right ? 2.0F : -2.0F)), 10.5F, 13.0F);
        emitter.spriteBake(0, sprite, MutableQuadView.BAKE_ROTATE_NONE);

        var widthFactor = this.offSetDigitU(digit);
        var heightAddition = this.offSetDigitV(digit) + (powered ? 12 : 0);
        ModelUtil.setUvOnSprite(emitter, sprite, (widthFactor - 3), heightAddition, widthFactor, (5 + heightAddition));

        ModelUtil.emitTexturedData(emitter, powered);
    }
/**
     * Emits a digit model based on the blockstate
     *
     * @param emitter   Emitter that will be used to emit the quads.
     * @param state     State of the block the digit display will base itself on.
     * @param right     Determines if the digit is a u2 or u1 digit.
     */
Emits a digit model based on the blockstate
@param emitter   Emitter that will be used to emit the quads.
@param state     State of the block the digit display will base itself on.
@param right     Determines if the digit is a u2 or u1 digit.
Emits a digit model based on the blockstate @param emitter Emitter that will be used to emit the quads . @param state State of the block the digit display will base itself on . @param right Determines if the digit is a u2 or u1 digit .
public void emitDigitModel(QuadEmitter emitter, BlockState state, boolean right) {
        var digits = this.getDigits(state.get(TimerRepeaterBlock.TIMER_DELAY));
        var powered = state.get(TimerRepeaterBlock.POWERED);
        var sprite = DIGITS_TEXTURE.getSprite();
        var digit = digits[(right ? 1 : 0)];
        ModelUtil.emitQuad(emitter, Direction.UP, (6.5F + (right ? 2.0F : -2.0F)), 5.5F, (9.5F + (right ? 2.0F : -2.0F)), 10.5F, 13.0F);
        emitter.spriteBake(0, sprite, MutableQuadView.BAKE_ROTATE_NONE);
        var widthFactor = this.offSetDigitU(digit);
        var heightAddition = this.offSetDigitV(digit) + (powered ? 12 : 0);
        ModelUtil.setUvOnSprite(emitter, sprite, (widthFactor - 3), heightAddition, widthFactor, (5 + heightAddition));
        ModelUtil.emitTexturedData(emitter, powered);
    }
public void emitDigitModel ( QuadEmitter emitter , BlockState state , boolean right ) { var digits = this . getDigits ( state . get ( TimerRepeaterBlock . TIMER_DELAY ) ) ; var powered = state . get ( TimerRepeaterBlock . POWERED ) ; var sprite = DIGITS_TEXTURE . getSprite ( ) ; var digit = digits [ ( right ? 1 : 0 ) ] ; ModelUtil . emitQuad ( emitter , Direction . UP , ( 6.5F + ( right ? 2.0F : - 2.0F ) ) , 5.5F , ( 9.5F + ( right ? 2.0F : - 2.0F ) ) , 10.5F , 13.0F ) ; emitter . spriteBake ( 0 , sprite , MutableQuadView . BAKE_ROTATE_NONE ) ; var widthFactor = this . offSetDigitU ( digit ) ; var heightAddition = this . offSetDigitV ( digit ) + ( powered ? 12 : 0 ) ; ModelUtil . setUvOnSprite ( emitter , sprite , ( widthFactor - 3 ) , heightAddition , widthFactor , ( 5 + heightAddition ) ) ; ModelUtil . emitTexturedData ( emitter , powered ) ; }
Emits a digit model based on the blockstate
 @param emitter   Emitter that will be used to emit the quads.
Emits a digit model based on the blockstate @param emitter Emitter that will be used to emit the quads .