src/main/java/dev/rlnt/energymeter/component/SideConfiguration.java
private Direction horizontalConversion(BLOCK_SIDE side) {
        if (side == BLOCK_SIDE.TOP) {
            return Direction.UP;
        } else if (side == BLOCK_SIDE.BOTTOM) {
            return Direction.DOWN;
        } else if (side == BLOCK_SIDE.LEFT) {
            return facing.getClockWise();
        } else if (side == BLOCK_SIDE.RIGHT) {
            return facing.getCounterClockWise();
        } 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 any of the 4 compass directions.
     *
     * @param side the block side to convert
     * @return the direction
     */
Converts the given block side to a direction if the facing direction
is any of the 4 compass directions.

@param side the block side to convert
@return the direction
Converts the given block side to a direction if the facing direction is any of the 4 compass directions . @param side the block side to convert @return the direction
private Direction horizontalConversion(BLOCK_SIDE side) {
        if (side == BLOCK_SIDE.TOP) {
            return Direction.UP;
        } else if (side == BLOCK_SIDE.BOTTOM) {
            return Direction.DOWN;
        } else if (side == BLOCK_SIDE.LEFT) {
            return facing.getClockWise();
        } else if (side == BLOCK_SIDE.RIGHT) {
            return facing.getCounterClockWise();
        } else if (side == BLOCK_SIDE.BACK) {
            return facing.getOpposite();
        } else {
            return facing;
        }
    }
private Direction horizontalConversion ( BLOCK_SIDE side ) { if ( side == BLOCK_SIDE . TOP ) { return Direction . UP ; } else if ( side == BLOCK_SIDE . BOTTOM ) { return Direction . DOWN ; } else if ( side == BLOCK_SIDE . LEFT ) { return facing . getClockWise ( ) ; } else if ( side == BLOCK_SIDE . RIGHT ) { return facing . getCounterClockWise ( ) ; } 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 any of the 4 compass directions.
Converts the given block side to a direction if the facing direction is any of the 4 compass directions .