src/main/java/dev/rlnt/energymeter/component/SideConfiguration.java
private Direction verticalConversion(BLOCK_SIDE side) {
        if (side == BLOCK_SIDE.TOP) {
            return bottom.getOpposite();
        } else if (side == BLOCK_SIDE.BOTTOM) {
            return bottom;
        } else if (side == BLOCK_SIDE.LEFT) {
            return facing == Direction.UP ? bottom.getClockWise() : bottom.getCounterClockWise();
        } else if (side == BLOCK_SIDE.RIGHT) {
            return facing == Direction.UP ? bottom.getCounterClockWise() : bottom.getClockWise();
        } else if (side == BLOCK_SIDE.BACK) {
            return facing.getOpposite();
        } else {
            return facing;
        }
    }
/**
     * Converts the given block side to a direction if the facing direction
     * is up or down.
     *
     * @param side the block side to convert
     * @return the direction
     */
Converts the given block side to a direction if the facing direction
is up or down.

@param side the block side to convert
@return the direction
Converts the given block side to a direction if the facing direction is up or down . @param side the block side to convert @return the direction
private Direction verticalConversion(BLOCK_SIDE side) {
        if (side == BLOCK_SIDE.TOP) {
            return bottom.getOpposite();
        } else if (side == BLOCK_SIDE.BOTTOM) {
            return bottom;
        } else if (side == BLOCK_SIDE.LEFT) {
            return facing == Direction.UP ? bottom.getClockWise() : bottom.getCounterClockWise();
        } else if (side == BLOCK_SIDE.RIGHT) {
            return facing == Direction.UP ? bottom.getCounterClockWise() : bottom.getClockWise();
        } else if (side == BLOCK_SIDE.BACK) {
            return facing.getOpposite();
        } else {
            return facing;
        }
    }
private Direction verticalConversion ( BLOCK_SIDE side ) { if ( side == BLOCK_SIDE . TOP ) { return bottom . getOpposite ( ) ; } else if ( side == BLOCK_SIDE . BOTTOM ) { return bottom ; } else if ( side == BLOCK_SIDE . LEFT ) { return facing == Direction . UP ? bottom . getClockWise ( ) : bottom . getCounterClockWise ( ) ; } else if ( side == BLOCK_SIDE . RIGHT ) { return facing == Direction . UP ? bottom . getCounterClockWise ( ) : bottom . getClockWise ( ) ; } else if ( side == BLOCK_SIDE . BACK ) { return facing . getOpposite ( ) ; } else { return facing ; } }
Converts the given block side to a direction if the facing direction
 is up or down.
Converts the given block side to a direction if the facing direction is up or down .