src/main/java/dev/lambdaurora/spruceui/util/SpruceUtil.java
public static int parseIntFromString(String value) {
        try {
            return Integer.parseInt(value);
        } catch (NumberFormatException e) {
            return 0;
        }
    }
/**
     * Parses an integer from a string. If the value is not a integer it returns {@code 0}.
     *
     * @param value a {@code String} which represents an integer
     * @return the parsed integer, if parsing fails returns {@code 0}.
     */
Parses an integer from a string. If the value is not a integer it returns  0.
@param value a  String which represents an integer
@return the parsed integer, if parsing fails returns  0.
Parses an integer from a string . If the value is not a integer it returns 0 . @param value a String which represents an integer @return the parsed integer if parsing fails returns 0 .
public static int parseIntFromString(String value) {
        try {
            return Integer.parseInt(value);
        } catch (NumberFormatException e) {
            return 0;
        }
    }
public static int parseIntFromString ( String value ) { try { return Integer . parseInt ( value ) ; } catch ( NumberFormatException e ) { return 0 ; } }
Parses an integer from a string.
Parses an integer from a string .