public static IntTag parseInt(String mojangson) throws MojangsonParseException {
  try {
    return new IntTag(Integer.valueOf(mojangson));
  }
 catch (  NumberFormatException nfe) {
    throw new MojangsonParseException("\'" + mojangson + "\'",MojangsonParseException.ParseExceptionReason.INVALID_FORMAT_NUM);
  }
}

public static IntTag parseInt ( String mojangson ) throws MojangsonParseException { try { return new IntTag ( Integer . valueOf ( mojangson ) ) ; } catch ( NumberFormatException nfe ) { throw new MojangsonParseException ( "\'" + mojangson + "\'" , MojangsonParseException . ParseExceptionReason . INVALID_FORMAT_NUM ) ; } }
parses an integer value from a mojangson string as an nbt inttag
